Report Definitions
The format and contents of a report are controlled by a report definition. Each definition can contain any number of reports. Each report starts with a REPORT statement and ends with the END statement. The steps taken to generate a report are as follows:
- Read and validate the report definition file. Any data that needs to be obtained from the user is requested.
- The source data is scanned and all data that meets the selection criteria are collected.
- The collected data is sorted into the order requested.
- The sorted data is formated and placed in an output file according to the PRINT statements supplied.