Compiling a Report
The report compiler compiles the 4GL report definition file for a selected report program or for all report programs in a product line or system code. You must compile the report description file before the program can use it.
To compile a report
- From the Programmer Utilities menu, choose Compile Tools.
-
Choose
Compile Report.
The Compile Report window appears.
Field Description Compile Option t - Build .rd for COBOL.
This option updates the RptMap file, creates the report definition library (.rd), and prints the report description.
c - Build .rd for C.
For internal use at Lawson Software
s - Override default page size.
Must be followed by a two-digit specification for the page size (nn), as explained below. This option only applies to reports without a $PAGESIZE command or reports with a $PAGESIZE 66 definition.
Note: Do not remove the $PAGESIZE commands on reports that require a non-standard page size, such as invoices, checks, or other forms. Page sizes between 20 and 50 should generally not be changed.nn00 for a continuous report (no page breaks).
- or -
20-99 to reset the page size to any number of lines from 20 to 99.
Must be used with option
s
.Note: No changes are made to the $PGBRKCNTL settings, which can cause inconsistent results if $PGBRKCNTL is set to FULL or MANUAL.Product Line The product line for the selected report definitions. System Code The system code for the selected report definitions.
Leave this field blank to compile all report definitions in the product line. If you leave this field blank, leave the Program Code field blank also.
Program Code The program code of the selected report definitions.
Leave this field blank to compile the report definition for all report programs in the product line or system code
I/O Options Optional. Lets you redirect output to the screen or to a file. -
Choose
OK.
Command syntax:
rptgen [-tc] [-snn] productline [systemcode [ProgramCode]]