RERUN Clause

The RERUN clause specifies that checkpoint records are to be taken.

The RERUN clause is syntax checked, but is treated as documentation.

Read syntax diagramSkip visual syntax diagram
RERUN Clause - Format

         (1)                                             
>>-RERUN------+---------------------------+--+-------+---------->
              '-ON--+-file-name-1-------+-'  '-EVERY-'   
                    '-assignment-name-1-'                

>--+-+-integer-1--RECORDS----+--+----+--file-name-2-+----------><
   | '-END--+----+--+-REEL-+-'  '-OF-'              |   
   |        '-OF-'  '-UNIT-'                        |   
   +-integer-2--CLOCK-UNITS-------------------------+   
   '-condition-name-1-------------------------------'   

Notes:
  1. Syntax-checked only.
file-name-1
The name of a sequentially organized file. The file named in the RERUN clause must be a file defined in the same program as the I-O-CONTROL paragraph, even if the file is defined as GLOBAL.
assignment-name-1
This name can be any user defined word. The file named in the RERUN clause must be a file defined in the same program as the I-O-CONTROL paragraph, even if the file is defined as GLOBAL.
EVERY integer-1 RECORDS
A checkpoint record is to be written for every integer-1 record in file-name-2 that is processed.

When multiple integer-1 RECORDS phrases are specified, no two of them may specify the same file-name-2.

Integer-1 must be an unsigned integer. It specifies the number of records to be processed before the RERUN information is written.

EVERY END OF REEL/UNIT
No two multiple END OF REEL or END OF UNIT phrases can specify the same file-name-2. The definition of UNIT is determined by each assignment-name-1.
EVERY integer-2 CLOCK-UNITS
Only one RERUN clause containing the CLOCK-UNITS phrase can be specified.