NP JOBNAME JobID Owner Prty Queue C Pos SAff ASys
HFW21 JOB35266 OPHFW 1 PRINT B 292
HFW22 JOB47606 OTS4S 1 PRINT 0 633
HFW24a JOB47605 OTS4S 1 PRINT 0 638
HFW25 JOB49146 OPHFW 1 PRINT B 1057
.
.
.etc..
I tried with the below code to copy the content of 1 job into PS file and was successful. Could anybody please guide me to copy all the jobs as listed above (say HFW21,HFW22,HFW24A,HFW25.....etc) into a PDS as a member. I should have all the members of HFW copied into 1 PDS. What are the Changes I have to do to the below code to complete my requirement.
/* rexx */
ADDRESS TSO
"ALLOC F(ISFIN) TRACKS SPACE(1) REU"
"ALLOC F(ISFOUT) NEW DELETE REU " ,
"TRACKS SPACE(100,100) LRECL(133) RECFM(F,B,A) DSORG(PS)"
"ALLOC F(TEMPPRT) DA('DAAA.REXX.JOB3') SHR"
QUEUE "PRE HFW44"
QUEUE "ST"
QUEUE "FILTER JOBID EQ " JOB20254
QUEUE "++S"
QUEUE "PRINT FILE TEMPPRT "
QUEUE "PRINT 1 999999"
QUEUE "PRINT CLOSE"
QUEUE "END"
QUEUE "EXIT"
SAY QUEUE
"EXECIO" QUEUED()" DISKW ISFIN (FINIS"
ADDRESS ISPEXEC "SELECT PGM(ISFAFD) PARM('++32,255')"
EXIT
ADDRESS TSO
"ALLOC F(ISFIN) TRACKS SPACE(1) REU"
"ALLOC F(ISFOUT) NEW DELETE REU " ,
"TRACKS SPACE(100,100) LRECL(133) RECFM(F,B,A) DSORG(PS)"
"ALLOC F(TEMPPRT) DA('DAAA.REXX.JOB3') SHR"
QUEUE "PRE HFW44"
QUEUE "ST"
QUEUE "FILTER JOBID EQ " JOB20254
QUEUE "++S"
QUEUE "PRINT FILE TEMPPRT "
QUEUE "PRINT 1 999999"
QUEUE "PRINT CLOSE"
QUEUE "END"
QUEUE "EXIT"
SAY QUEUE
"EXECIO" QUEUED()" DISKW ISFIN (FINIS"
ADDRESS ISPEXEC "SELECT PGM(ISFAFD) PARM('++32,255')"
EXIT