The STOP statement terminates processing before the end of the input file.
STOP {AFTER numrec RECORDS | PASS}.
Stops processing the input file after numrec records are selected—that is, after numrec statements pass any SELECT and IGNORE conditions.
When developing and testing report control files, use the STOP AFTER numrec RECORDS statement to save time in trial runs.
Terminates processing of the input file. Use PASS when significant data is in a known order and no more data needs to be checked.
Examples
The following examples show how to use the STOP statement to halt processing before the end of the input file is reached:
STOP AFTER 7 RECORDS.
IF FLAG EQ X'FF'.
STOP PASS.
END IF.
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |