com.ibm.jzos.sample
Class EnqUpdatePdsMember
- java.lang.Object
-
- com.ibm.jzos.sample.EnqUpdatePdsMember
-
public class EnqUpdatePdsMember extends java.lang.ObjectSample 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:
Enqueue,ZFile.allocDummyDDName(),ZFile.getFullyQualifiedDSN(String, boolean),ZFile.bpxwdyn(String)
-
-
Constructor Summary
Constructors Constructor and Description EnqUpdatePdsMember(java.lang.String pdsName, java.lang.String memberName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static voidmain(java.lang.String[] args)booleanupdate()Update a given fully qualified PDS name and membername.
-
-
-
Constructor Detail
-
EnqUpdatePdsMember
public EnqUpdatePdsMember(java.lang.String pdsName, java.lang.String memberName)
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception- Throws:
java.lang.Exception
-
update
public boolean update() throws java.io.IOExceptionUpdate 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:
java.io.IOException
-
-