JCL RESTART Parameter

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.

  1. The Simplest syntax of RESTART Parameter
    RESTART=STEP-NAME

Example,
Suppose, you have a JCL and you want to run your JCL directly from step ‘STEP04‘, then you should code –
RESTART=STEP04

2.The Syntax of RESTART Parameter if you want to run all the steps of a PROC:
RESTART=STEP-NAME.PROC-NAME

Example,
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 –
RESTART=STEP03.PROC04

3.The Syntax of RESTART Parameter if you want to run from a particular step of a PROC:
RESTART=JCL-STEP.PROC-NAME.PROC-STEP

Example,
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 –
RESTART=STEP05.PROC08.STEP07

Example of RESTART=STEP-NAME

RESTART in JCL

Explanation of the Output

restart=* in jcl

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.

Tutorials for all brains!