-
Execute JCL steps
A JCL has 5 steps. I have to execute the step 2, 4 & 5. I should not execute step 1 & 3.
At same time, I should not comment the steps 1 & 3. How could I execute steps 2, 4, & 5 without executing Steps 1 & 3?
[b]Question asked by visitor Ranjani[/b]
-
Re: Execute JCL steps
Use RESTART=Step2 in Jobcard and give condition code "COND=0 LE step2" in step3, which u cant meet for ever.
Let me know?.
-
Re: Execute JCL steps
[QUOTE=Geek_Guest;19179]A JCL has 5 steps. I have to execute the step 2, 4 & 5. I should not execute step 1 & 3.
At same time, I should not comment the steps 1 & 3. How could I execute steps 2, 4, & 5 without executing Steps 1 & 3?
[b]Question asked by visitor Ranjani[/b][/QUOTE]
You can using IEBEDIT utility for your requirement. The syntax as
follows.
Syntax:
//JOBCARD
//PS010 EXEC PGM=IEBEDIT
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=path of your JCL,DISP=SHR
//SYSUT2 DD SYSOUT=(A,INTRDR)
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
EDIT TYPE=INCLUDE,STEPNAME=(step2, step4,step5)
or
EDIT type=EXCLUDE,STEPNAME=(step1,step3)