This example demonstrates a simple report driver and definition. The report driver
extracts rows from the customer database table and passes them to the
report definition to be formatted.
The Report Driver
The Report Driver for this example, custreports.4gl defines a cursor to retrieve customer table rows sorted by state, then city. The START REPORT statement initializes the report and provides destination and page setup information to the Report Definition.
The Report Definition
The Report Definition uses the REPORT program block to format the input records from the Report Driver.