
Reply to comment
Reply
Click the +1 button below to share it with your friends and colleagues
Share this if you liked it!
Click the +1 button below to share it with your friends and colleagues
t-decoration:none;text-underline:none'>IBM DB2 Certification
LOGOUT
Number of Registered users 713
|
If there is a will there is a way, i have thought of a way to put a loop into JCL but i think it is an unwise practice so i will not disclose it here.
What i think you need to do is put your common set of steps into a jcl Procedure, using symbolic's to represent the items that are variable in the procedure.
you can then execute that common set of steps multiple times in a job. eg.
//PROC1 PROC
//STEP1 IEFBRT14,PARM=(&PARM1,&PARM2)
//STEP2 IEFBRT14,PARM=(&PARM1,&PARM2)
// PEND
// SET PARM1=A
// SET PARM2=B
// EXEC PROC=PROC1
// SET PARM1=C
// SET PARM2=D
// EXEC PROC=PROC1
// SET PARM1=E
// SET PARM2=F
// EXEC PROC=PROC1
// SET PARM1=G
// SET PARM2=H
// EXEC PROC=PROC1