Previous Topic: PF Key AssignmentsNext Topic: Simple Sample Report


Basic Steps to Create a Report

The following are the minimum steps necessary to create a report using RDF:

  1. Define the report.

    Enter the CREATE REPORT command to begin the process. The Identification fill‑in displays automatically when the CREATE REPORT command is issued. When you assign a name to a report in the CREATE REPORT command or in the Identification fill‑in, the report is formally identified in the dictionary facility.

    Enter the command DETAIL to access the Detail fill‑in. Define the report fields on the Detail fill‑in.

  2. Identify the report to the program.

    Add the report to the program resources. A program does not compile if it attempts to generate a report that is not specified as a resource.

    Any variables or dataviews the report uses must also be defined as resources.

  3. Code the PRODUCE statement.

    Include the PRODUCE statement in the program to generate the report output.