Skip to Content
Custom Search

Is it possible to submit a JCL in loop?

1 reply [Last post]
Anonymous

I have a requirement in my project to repeat a particular function carried by a JCL, n number of times each time changing the parameter being passed to the JCL.

I think if I could somehow submit the JCL in loop, I would be able to achieve this.

I am new to this forum, can anyone help me out

Sponsored Listing
Alan.R.Wynne
Offline
Joined: 07/07/2011
Posts:
looping JCL

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

Click the +1 button  below to share it with your friends and colleagues

 

Share this if you liked it!

 

Disclaimer



Who's online

There are currently 1 user and 26 guests online.

Online users

  • abhilasha
Dr. Radut | forum