The RERUN clause specifies that checkpoint records are to be taken. Subject to the restrictions given with each phrase, more than one RERUN clause can be specified.
The RERUN clause is syntax checked, but has no effect on the execution of programs compiled with the NOTHREAD compiler option.
The RERUN clause is invalid syntax for programs compiled with the THREAD compiler option.
Do not use the RERUN clause:
SORT/MERGE considerations:
When the RERUN clause is specified in the I-O-CONTROL paragraph, checkpoint records are written at logical intervals determined by the sort/merge program during execution of each SORT or MERGE statement in the program. When the RERUN clause is omitted, checkpoint records are not written.
There can be only one SORT/MERGE I-O-CONTROL paragraph in a program, and it cannot be specified in contained programs. It will have a global effect on all SORT and MERGE statements in the program unit.
When multiple integer-1 RECORDS phrases are specified, no two of them can specify the same value for file-name-1.
If you specify the integer-1 RECORDS phrase, you must specify assignment-name-1.
When multiple END OF REEL/UNIT phrases are specified, no two of them can specify the same value for file-name-1.
The END OF REEL/UNIT phrase can be specified only if file-name-1 is a sequentially organized file.