Form Definition Copybooks

Using the form definition source file, the form compiler generates a form definition copybook for online and batch programs. When you compile an application program, the precompiler copies the copybook for the program into the program.

The form compiler generates the copybook 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 xxxxxDSD.COPYILE The "xxxxx" is the program name--for example, GL20).

The form definition copybook includes an entry for each data field on the form. Each input field also has a field number (FnFN@xxxxxx) entry. The program uses the FnFN@ entry to move the cursor to the field on an error. In addition, each form tab name field has an associated field for holding control information (active flag, protected status, and so on). This field is listed in the copybook immediately after the field number entry for the form tab name field.