This is the code, i use to make contents of a PDS to PS file.
This is the usual scenario.....
INPUT : PDS or PDSE
OUTPUT : Contents of PDS or PDSE in PS file
BUILD the JCL using REXX - Does that mean, REXX can prepare a JCL for all my inputs.
Will it be like this,
1. I will have a job to RUN REXX. In this job i will supply the input file which contains the PDS files.
2. REXX program will create JCL's for each PDS & submit the job.
I am not able to think how rexx would do this(since i don't know rexx). Can you point me to links similar to this & a GOOD REXX REFERENCE MANUAL.
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
Sushanth, I think that whether or not you know REXX is irrelevant. I think that it's more important that you know how to define and use ISPF File Tailoring logic. What language you ultimately choose to use to call those ISPF services is rather unimportant.
If you know how to use File Tailoring, fine. If you want to use ISPF Libray Management (LM) Services in a program, fine. If you don't, than maybe you should consider some other method. Keep in mind that IEBPTPCH is only for PDS's that are RECFM=FB and LRECL=80. The overall task seems relatively simple:
- Read a record from the input file.
- Create a job that uses IEBPTPCH and SORT to format the output to your specific requirements, along with the unique dataset names that you required for your output.
- Submit that job.
- Go back and do the same thing for the next record.