Report Definition Copybook

Using the report definition source file, the report compiler generates a report definition copybook ( xxxxxPRD.COPYILE) for each report program. When you compile an application program, the report compiler copies the program copybook into the report program.

The report compiler generates the report definition copybooks with the source file name format:

Component Format Comments
Product line LAWAPP9 The product line name for Lawson applications
Location in IFS Form definition source files are located in $LAWDIR/productline/rpg/syscoderpg/SYSCODERPGSRC.
Source file name xxxxxPRD.COPYILE The "xxxxx" is the program name--for example, HR125).

A report definition copybook has two sections: the data variables and the group variables.

The R@DATA section defines the data variables for the report. Each line is a 4GL description of the fields defined in the $FORMAT section of the report definition source file. To name each field, the report compiler combines the $PREFIX parameter with the RPG field names in the $FIELDS section. The 4GL picture of each field in the $FORMAT section determines the size of that field.

The group section of the report definition copybook defines each group ($GROUP) in the report definition source file. All printing in a report occurs at the group level.