This example shows the use of the RD parameter, which requests step restart for any abnormally terminated job step.
//J1234 JOB 386,SMITH,MSGLEVEL=1,RD=R //S1 EXEC PGM=MYPROG //INDATA DD DSNAME=INVENT[,UNIT=TAPE],DISP=OLD, // [VOLUME=SER=91468,] // LABEL=RETPD=14 //REPORT DD SYSOUT=A //WORK DD DSNAME=T91468,DISP=(,,KEEP), // UNIT=SYSDA,SPACE=(3000,(5000,500)), // VOLUME=(PRIVATE,RETAIN,,6) //DDCKPNT DD UNIT=TAPE,DISP=(MOD,PASS,CATLG), // DSNAME=C91468,LABEL=(,NL)
The DDCKPNT DD statement defines a checkpoint data set. For this step, after a RERUN clause is performed, only automatic checkpoint restart can occur unless a CHKPT cancel is issued.