Class EnqUpdatePdsMember

java.lang.Object
com.ibm.jzos.sample.EnqUpdatePdsMember

public class EnqUpdatePdsMember extends Object
Sample program that ENQs on a PDS / member in a manner compatible with ISPF and then updates the PDS member.

The fully qualified dataset name is given as the first argument and the member name is given as the second argument.

Since:
2.3.0
See Also:
  • Constructor Details

    • EnqUpdatePdsMember

      public EnqUpdatePdsMember(String pdsName, String memberName)
  • Method Details

    • main

      public static void main(String[] args) throws Exception
      Throws:
      Exception
    • update

      public boolean update() throws IOException
      Update a given fully qualified PDS name and membername. Catch exceptions and unwind/cleanup any resources that were obtained.

      Returns:
      true if updated, false if in use
      Throws:
      IOException