The Production Reporting language processes source code from standard text files and generates reports. Text files containing source code contain sections delimited with BEGIN‑section and END-section commands. The following examples show the general structure of the Production Reporting language.
The SETUP section describes overall characteristics of the report:
The HEADING and FOOTING sections specify what is printed in the header and footer on each page of the report:
BEGIN-HEADING {heading_lines}
{heading commands}...
END-HEADING
BEGIN-FOOTING {footing_lines}
{footing commands}...
END-FOOTINGThe PROGRAM section executes the procedures contained in the report:
The PROCEDURE section accomplishes the tasks associated with producing the report: