<< Click to Display Table of Contents >> Navigation: Reference > Commands > STOP |
The form of the STOP command is:
STOP,
The STOP command is used to terminate execution of a stage. Data and Tables stage executions normally end automatically when there are no more data records to be read, and Manip and Print Stage executions end when FINISH is reached; but sometimes you may want to end the stage prematurely, for example, if more than a certain number of errors are encountered or after a certain number of records have been read. In this case the STOP command is used.
Note that a STOP command must appear in a CL script if the EFIL parameter is used on a READ command.
See also run control parameters MAXREC and MAXIDF.