This example shows the changes that you might make to the JCL
before you resubmit a job for step restart.
//J3412 JOB 386,SMITH,MSGLEVEL=1,RD=R,RESTART=*
//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=S91468,
// DISP=(,,KEEP),UNIT=SYSDA,
// SPACE=(3000,(5000,500)),
// VOLUME=(PRIVATE,RETAIN,,6)
//DDCHKPNT DD UNIT=TAPE,DISP=(MOD,PASS,CATLG),
// DSNAME=R91468,LABEL=(,NL)
The following changes were made in the example above:
- The job name has been changed (from J1234 to J3412) to distinguish the original job from the restarted
job.
- The RESTART parameter has been added to the JOB statement, and indicates that restart is to begin with
the first job step.
- The WORK DD statement was originally assigned a conditional
disposition of KEEP for this data set:
- If the step terminated normally in the previous run of the job,
the data set was deleted, and no changes need to be made to this
statement.
- If the step abnormally terminated, the data set was kept. In
that case, define a new data set (S91468 instead of T91468, as shown), or change the status of the data set to
OLD before resubmitting the job.
- A new data set (R91468 instead of C91468) has also been defined as the checkpoint data
set.
Example: requesting a step restart