FINISH

<< Click to Display Table of Contents >>

Navigation:  Reference > Commands >

FINISH

The form of the FINISH command is:

FINISH stage,

The FINISH command indicates the end of a Stage in a CL script.

FINISH CONTROL ends the Control Stage, and CL moves on to the next stage.

FINISH DATA causes control to be returned to START DATA. If no WRITE command is included in the Data Stage, FINISH DATA will also execute a WRITE command before returning to START DATA. CL moves on to the next stage when the input data files have been read and an attempt is made to read another card, or if a STOP command is executed.

FINISH TABLES ends a Tables Stage. When FINISH TABLES is reached, the next batch of IDF records is read in and execution restarted at START TABLES. CL moves on to the next stage when the IDF files have been read.

FINISH MANIP ends a Manip Stage and CL moves on to the next stage.

FINISH PRINT ends the Print Stage.

It is possible to regard FINISH as a position in the code and FINISH may be referenced in GO TO commands:

if $num/<1, goto finish,

Examples of FINISH commands:

finish control,

finish data,

finish tables,

finish manip,

finish print,