Hi,
when I invoke the PdsLister-Sample with a PDS as argument, everything works fine. As soon as the argument is a PDSE (emphasis on the E), the JVMPRC50-proc fails with
JVMJZBL2007E Stack trace follows:
java.io.IOException: The name //DD:INPUT is not a PDS Directory
at com.ibm.jzos.PdsDirectory.<init>(PdsDirectory.java:76)
at com.ibm.jzos.sample.PdsLister.main(PdsLister.java:32)
(I provide the PDSE via a DD-statment INPUT).
What is wrong?
Regards
Thomas
Sample PdsLister on a PDSE
Unfortunately, the class com.ibm.jzos.PdsDirectory only supports regular PDS datasets, and not PDSEs.
From the javadoc: "throws IOException if the PDS can't be opened with RECFM=U,BLKSIZE=256, or if its DSORG is not PDS_DIR."
I believe that the code, as currently written, is too restrictive since PDSE directories can be processed in compatability mode (simulating a PDS directory). So, we will likely fix the PdsDirectory class in a future release to allow compatability mode processing of PDSE directories.
From the javadoc: "throws IOException if the PDS can't be opened with RECFM=U,BLKSIZE=256, or if its DSORG is not PDS_DIR."
I believe that the code, as currently written, is too restrictive since PDSE directories can be processed in compatability mode (simulating a PDS directory). So, we will likely fix the PdsDirectory class in a future release to allow compatability mode processing of PDSE directories.