Report Definition Format

Each line in the report definition file has a fixed format.

Position Description
1

An asterisk (*) indicates the record is a comment. The report compiler prints comment records but does not process them.

A dollar sign ($) indicates the record is a command.

2 The command name begins in position 2.
12 Some commands take parameters. When needed, parameters start in column 12.

Many commands come in pairs. Some paired commands have intermediate data specifications that are also in a fixed format. Formats for these data specifications are listed with the description of the command pair.

A report definition for a program has six levels.

  • Program: The program level encompasses all reports in a program. For more information, see Program Commands ($PROGRAM/$ENDPGM).

  • Report: The report level defines each report in the program. A program can have up to ten reports. For more information, see Report Commands.

  • Group: Each report is divided into groups. The group definition determines the report format and data fields. Data prints at the group level. For more information, see Group Commands.

  • Format: The format level defines the layout of the report lines of a group. For more information, see Format Definition ($FORMAT/$ENDFMT).

  • Field: Each field in a group has a definition. For more information, see Field Definitions.

  • Drill Around Definition: A field on a report can access data using Drill Around definitions when the report displays online using lashow. For more information, see Drill Around Definitions.