RESTART Parameter
RESTART Parameter Example
Scenario1 - Restart from STEP02.
Code -
----+----1----+----2----+----3----+----4----+----5----+
//MTHEXMP1 JOB (MTH123),'PAWAN Y',RESTART=STEP02
//STEP01 EXEC PGM=PROGA
//STEP02 EXEC PGM=PROGB
//STEP03 EXEC PGM=PROGC
//STEP04 EXEC PGM=PROGD
Explaining Example -
The job starts executing from STEP02.
Scenario2 - Restart from STEP01.
Code -
----+----1----+----2----+----3----+----4----+----5----+
//MTHEXMP2 JOB (META007),'PAWAN Y',RESTART=*
//STEP01 EXEC PGM=PROGA
//STEP02 EXEC PGM=PROGB
//STEP03 EXEC PGM=PROGC
//STEP04 EXEC PGM=PROGD
Explaining Example -
The job starts executing from STEP01.
Scenario3 - Restarting from first step of PROCB.
Code -
----+----1----+----2----+----3----+----4----+----5----+
//MTHEXMP3 JOB (META007),'PAWAN Y',RESTART=PROCB
//STEP01 EXEC PGM=PROGA
//STEP02 EXEC PGM=PROGB
//STEPPR1 EXEC PROCB
//STEP05 EXEC PGM=PROGE
//STEP06 EXEC PGM=PROGF
//PROCB PROC
//STEP03 EXEC PGM=PROGC
//STEP04 EXEC PGM=PROGD
// PEND
Explaining Example -
The job starts executing from STEP03 in the PROCB.
Scenario4 - Restarting from STEP04 of PROCB.
Code -
----+----1----+----2----+----3----+----4----+----5----+
//MTHEXMP4 JOB (META007),'PAWAN Y',RESTART=PROCB.STEP04
//STEP01 EXEC PGM=PROGA
//STEP02 EXEC PGM=PROGB
//STEPPR1 EXEC PROCB
//STEP05 EXEC PGM=PROGE
//STEP06 EXEC PGM=PROGF
//PROCB PROC
//STEP03 EXEC PGM=PROGC
//STEP04 EXEC PGM=PROGD
// PEND
Explaining Example -
The job starts executing from STEP04 in the PROCB.