Production Reporting Language Program Structure

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:

BEGIN-SETUP
  {setup commands}...
END-SETUP

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-FOOTING

The PROGRAM section executes the procedures contained in the report:

BEGIN-PROGRAM
  {commands}...
END-PROGRAM

The PROCEDURE section accomplishes the tasks associated with producing the report:

BEGIN-PROCEDURE {procedure_name}
  {procedure commands}...
END-PROCEDURE