Clicky
Skip to Content
Custom Search

Reply to comment

Alan.R.Wynne
Offline
Joined: 07/07/2011
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

Reply

  • Allowed HTML tags:
      1. Lines and paragraphs break automatically.

    More information about formatting options

    CAPTCHA
    This question is for testing whether you are a human visitor and to prevent automated spam submissions.

Navigation

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

 

Share this if you liked it!

 

Disclaimer



Number of Registered users 713
Theme by Dr. Radut.