Use an instream proc:
See the code below, it takes the backup of the dataset by replacing the NODE parameter
Code
//BKUP PROC
//CPY EXEC PGM=IEBCOPY,REGION=1024K
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSUT1 DD DISP=SHR,DSN=ABC.TEST.&NODE
//SYSUT2 DD DISP=SHR,DSN=ABC.BKUP.&NODE
//SYSUT3 DD UNIT=SYSDA,SPACE=(CYL,(2,2))
//SYSUT4 DD UNIT=SYSDA,SPACE=(CYL,(2,2))
// PEND
//*
// EXEC BKUP,NODE=AAA
// EXEC BKUP,NODE=...
// EXEC BKUP,NODE=ZZZ
Pavan Kumar
Apr 22nd, 2015
Put the JCL to be called multiple times into the working storage section of COBOL program and submit this JCL from perform statement with until condition of COBOL program . Call this COBOL program from another JCL.
Janani
Mar 2nd, 2017
Can you please let me know how this can be implemented?
RAM
Apr 25th, 2017
JCL with multiple jobcards will submit the JCL multiple times
CodeBulls
Nov 24th, 2017
Put the Steps in a In-Stream PROC and repeat executing the PROC n times.
Run a step 'n' times
Profile Answers by balasubramaniyan Questions by balasubramaniyan
Questions by balasubramaniyan