JCL RESTART Parameter
JCL RESTART is an optional keyword parameter which is used to restart a job from a particular step.
Suppose, you have a JCL which has 3 steps(STEP1, STEP2, and STEP3) and you want to run the JCL directly from STEP3, then you can directly code the RESTART parameter at STEP3.
- The Simplest syntax of RESTART Parameter
Suppose, you have a JCL and you want to run your JCL directly from step ‘STEP04‘, then you should code –
2.The Syntax of RESTART Parameter if you want to run all the steps of a PROC:
Say, you have a PROC ‘PROC04‘ which is coded at step ‘STEP03‘ of your JCL and you want to run your JCL directly from the first step of PROC ‘PROC04‘, then you should use –
3.The Syntax of RESTART Parameter if you want to run from a particular step of a PROC:
Let us say, that you have a PROC ‘PROC08‘ which is coded at step ‘STEP05‘ of the JCL and you want to run your JCL from step STEP07 of the PROC ‘PROC08‘, then you can code –
Example of RESTART=STEP-NAME
Explanation of the Output
The original JCL has STEP10, STEP20 and STEP30 but when you give RESTART=STEP20 but if you go to JESYSMSG, then you can see that STEP10 has not run and the processing of JCL starts from STEP20 as shown in the above image.