Sample PdsLister on a PDSE

General discussion on the JZOS batch launcher and toolkit
Post Reply
tgmz
Posts: 1
Joined: Thu Jul 05, 2007 6:44 am

Sample PdsLister on a PDSE

Post by tgmz »

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
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

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.
Post Reply