Deferred Step Restart
You cause a deferred step restart of a job by coding the RESTART parameter without a checkid on the JOB statement and resubmitting the job. The parameter specifies a job step or a step of a cataloged procedure. It restarts the job at the beginning of the specified step. Steps preceding the restart step are interpreted, but not initiated.
The CHKPT macro instruction may or may not be coded in your program. Figure 1 illustrates a job originally submitted and the same job resubmitted for step restart. Assume that the results of STEP2 were unsatisfactory because of abnormal termination or incorrect data when the job was executed originally.
Figure 1. Requesting a Deferred Step Restart
Original Job
//MYJOB JOB MSGLEVEL=11 No automatic restart
//* requested
//STEP1 EXEC
.
.
.
//STEP2 EXEC PGM=MYPROG
.
.
.
//STEP3 EXEC
Resubmitted Job
//MYJOB JOB MSGLEVEL=1,1 Causes restart of job
// RESTART=STEP2 at STEP2
//STEP1 EXEC
.
.
.
//STEP2 EXEC PGM=MYPROG
.
.
.
//STEP3 EXEC
- Figure 1 Note:
- 1 MSGLEVEL=1 is optional.