Nope, the below is one of the answers to the OP's question. It also works
for PDSE, believe it or not.

Charles

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On
Behalf Of Stocker, Herman
Sent: Thursday, September 06, 2012 11:27 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Anyone know how to copy a PDS directory as a flat file?

Not sure what it is the OP wants but the IEHLIST may be all they need.  Also
works for PDS/e.
Regards,
Herman Stocker

It is impossible to make anything foolproof, because fools are so ingenious.
 -- Robert Heinlein


-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On
Behalf Of Steve Thompson
Sent: Thursday, September 06, 2012 2:19 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Anyone know how to copy a PDS directory as a flat file?

Try IDCAMS.

You do a REPRO of your PDS where you give the count that matches the number
of directory blocks and your output DD. You will need to specify the INPUT
DCB parameters, probably like this:  DCB=(RECFM=F.LRECL=256).

The output DD can be defined as FB with LRECL=256.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to