Syntax:
RESTART= stepname or stepname.procstepname |
Let us see some examples,
Example 1:
//LINES JOB '1/17/95',RESTART=STEP2 //STEP1 EXEC ..... // ..... //STEP2 EXEC ..... // ..... |
Example 2:
//MATEKSD JOB MSGLEVEL=(1,1),NOTIFY=&SYSUID,RESTART=STEP05 //* //* EXAMPLE TO RESTART PARAMETERS //* //STEP01 EXEC PGM=PGM1 //STEP02 EXEC PGM=PGM2 //STEP03 EXEC PGM=PGM3 //STEP04 EXEC PGM=PGM4 //STEP05 EXEC PGM=PGM5 //STEP06 EXEC PGM=PGM6 //STEP07 EXEC PGM=PGM7 //STEP08 EXEC PGM=PGM8 //* |
Example 3:
//TESTCTLG JOB 100,CLASS=C,MSGCLASS=Y,NOTIFY=&SYSUID,RESTART=STEP1.STEP07 //* //MYLIBS1 JCLLIB ORDER=userid.PROCS.JCL //* //STEP1 EXEC CTLGPROC //* |
Catalog Procedure:
//CTLGPROC PROC //* //STEP01 EXEC PGM=PGM1 //STEP02 EXEC PGM=PGM2 //STEP03 EXEC PGM=PGM3 //STEP04 EXEC PGM=PGM4 //STEP05 EXEC PGM=PGM5 //STEP06 EXEC PGM=PGM6 //STEP07 EXEC PGM=PGM7 //STEP08 EXEC PGM=PGM8 //* |
This JOB statement indicates that the system is to restart execution at the beginning of the job step named STEP07 inside the PROC.
Here Stepname(i.e. STEP1) is the Step name in the main JOB where actually that PROC is being executed. procstepname(i.e. STEP07) is part of the PROC from where the JOB should be restarted.
If you have any doubts or queries related to this chapter, get them clarified from our Mainframe experts on ibmmainframer Community!