i have a pds contains the jobs. my requirement is here to pick one member name and browse it to find all the datasets that are catlg and write those dsn in a sequential file. PDS contains approx. 20,000 jobs. and i need to do for all the jobs. Hope you can understand what i want. Can any one please suggest the rexx solution for this.
Thanks for your response ... Now i have copied all the jobs(JCLs) in a sequential dataset by running a JCL. I am able to pick the job name. Below is my rexx..
/* REXX STP999*/
dsndd = 'IN1' /*input dd name */
records.0 = 0
rrc = 0
"EXECIO * DISKR "wdd" (STEM records. FINIS"
If records.0 = 0 Then Do
Say 'Input DSN base file (DDNAME 'wdd') is empty'
I am getting member name mbr1 in the output. Member is JCL. Now I want to browse it to read its record to find DSN's that are CATLG like..
//INOUTDS3 DD DSN=XXXX.ABC002.XYZ,DISP=(,CATLG),
and then want to write XXXX.ABC002.XYZ in another sequential dataset.
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
It is not going to be simple, DSN and DISP may not always be on the same line. You also need to handle PROCs, overrides, and symbolic parameters. And there is always dynamic allocations. Have fun, you have along ways to go.