JCL – RUN ONLY ONE MIDDLE STEP (RESTART)
There is a JCL with 10 steps with Step names from STEP01 to STEP10. For some reason, only the 5th step (Step name: STEP05) needs to be executed. How can this be done.
A) Provide the parameter RESTART=STEP02,COND=(0,GT) in the JOB CARD
B) This cannot be done
C) Provide the parameter RESTART=STEP05 in the JOB CARD
D) Provide the parameter RESTART=STEP05,COND=(0,LE) in the JOB CARD
Option D would RESTART the job from STEP05 as required. The COND parameter provided in the JOB CARD would be applicable for all the steps in the JOB. So whatever may be the COND code from STEP05, it would always be satisfied by the COND parameter provided (COND=(0,LE)) for the consecutive steps, so none of the steps from STEP06 through STEP10 will execute.