Link to home
Start Free TrialLog in
Avatar of Lynnifer
Lynnifer

asked on

How do I copy a Z/OS PDS file to a flat file?

How do I copy a Z/OS PDS file to a flat file?  The flat file cannot be compressed.  The flat file will be used as input to a program.
Avatar of SolracM
SolracM

The Z/OS PDS file must be intercepted and converted to an "SD" file. Before it is converted to a PDF file in the output queue. It is most likely already somewhere out there in SD (FLAT) format. If it is not your best bet is to FTP it into a SD file from it's Orginal source, maybe it was a VSAM ESDS file and you can REPRO it into an SD file before it becomes a PDF file in the output queue.  If you are looking at it in the output queue chances are, it has already been converted,
Avatar of Lynnifer

ASKER

Sorry, but I don't understand what a PDF file has to do with it.  I need the output to remain on the mainframe.
I apoligy for not being as clear as I should be.
What I mean is most mainframes do NOT create PDF output without first having a input source , reading it, and spooling it out to the output JES queue. Since at the point it has been put in the JES queue it is already spooled in PDF format. What I meant is if you could find the input source file before it went to SYSLST. You may be able to create an SD file. as input to another program. I am an expert on the VM/VSE mainframe system but I have done SOME work in the OS/390
Your best bet would be to use ICAMS REPRO or if in the OS/390 world they have DITTO you can also use DITTO.  By any chance are you running Z/VM or native OS/390?
if you are running Z/VM a REXX exec (FSREAD) , FSWRITE) or a OS/390 CLIST sorry I mis-read And thought you meant a PDF file. My sincere apoligy for not reading clearly. IDCAMS repro will do a nice job.
ASKER CERTIFIED SOLUTION
Avatar of Lynnifer
Lynnifer

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of giltjr
Do you need all members of the PDS, or just specific members?  If you need all of the members, then the IEBPTPCH sample you have will work.  If you only need specific members, then using IEBGENER for each member needed will work.
Please close this question.  My solution is sufficient...
My solution is sufficient...