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?
Question asked by visitor Ranjani
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?
Question asked by visitor Ranjani
Use RESTART=Step2 in Jobcard and give condition code "COND=0 LE step2" in step3, which u cant meet for ever.
Let me know?.
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)
Last edited by tungal; 03-02-2008 at 08:57 AM.