Report Definition Source File

A report definition file contains the report formatting information for an application program. The report definition file is the input file for the report compiler, rptgen.

The report compiler converts the report definition to the specific requirements of your server. It creates two kinds of output:

  • It writes information from the report definition file to the RptMap file in a coded format. This information is used to format and print data when you run a report program.

  • It writes the report definition copybook for each report program. This is an RPG file that contains the report data variables. The application program report uses this file. The report compiler makes sure that this copybook matches the data you are processing.

The report compiler edits the report definition file for errors before making any changes to the RptMap file and the report definition library.

The full identification for a report definition source file has the following components:

Component Format Comments
Product line LAWAPP9 The product line name for Lawson applications
Location in IFS Report definition source files are located in $LAWDIR/productline/rpg/syscoderpg/SYSCODERPGSRC.
Source file name xxxxxP.PRNT The "xxxxx" is the program nameā€”for example, HR125).

Each report program has one report definition file. A report program can have multiple reports. Each report in a program has a separate report format in the report definition file.