Report Definition 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 creates the report definition (.rd) library for each report program. This is a COBOL library that contains the report data variables. The application program report uses this library. The report compiler makes sure that this library 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 name for a report definition file has the format

$LAWDIR/productline/systemcodesrc/ProgramCode.rpt

For example, for the the product line lawapp9, and the program GL220, the report definition file is

$LAWDIR/lawapp9/glsrc/GL220.rpt

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.