Previous Topic

Next Topic

Book Contents

Book Index

General Information for DO RERUN

The RERUN statement is intended for situations in which a job must be rescheduled following an unsuccessful job run.

Rerun jobs remain in the Active Jobs file with a status of WAIT SCHEDULE, where they wait to be submitted like any other job. However, other parameters, such as CONFIRM and DO IFRERUN, can affect the status of the rerun job order and the submission and processing of the job:

For information about confirmation, see Confirm Rerun Window and §Restart§Rerun and/or Restart Window (Under Control-M/Restart).

Job rerun is also affected by the MAXRERUN, RERUNMEM and INTERVAL parameters.

These parameters are described in this chapter.

DO RERUN cannot be specified for a cyclic job or a cyclic started task.

DO RERUN cannot be specified for the same ON step and code event as DO OK.

Do not specify DO RERUN for steps that have a specified ON statement code value of OK.

Do not specify DO RERUN for steps that have a specified ON statement code value of NOTOK because many of the causes of a NOTOK status, such as JCL not found, preclude the possibility of a successful job rerun. Instead, specify an ON statement code value of EXERR to accompany the DO RERUN statement.

When a DO RERUN statement is performed for a job (that is, the accompanying ON step and code criteria are satisfied), the previously run job is automatically assigned a final status of ENDED NOTOK, even if the job would have otherwise had a status of ENDED OK.

Parent Topic

DO RERUN: Post–Processing Parameter