You are on page 1of 1

In the above, record number 05 "causes" the Control Break.

Processing for Contro l Value 1111 needs to be carried out before record number 05 can be processed. Control processing requires at the very least the Control Field (often also call ed "the Key") of the previous record to be stored. Often other data has to be st ored or accumulated. On occasion you don't know how to process a record until you read the next recor d, so the entire input (or all required fields from it) is stored, and the recor ds are processed "one behind". One thing to always remember is that "end of file" causes the final Control Brea k, and it is the highest of all, and all Control Break processing from the lowes t on upwards must be done at that point.

You might also like