Using Element Reference in a 4GL Program
Any changes to element references in the source code take effect when you compile the changed programs.
- Open the program that you want to add an element reference to:
led ProductLine ProgramCode
- Select Procedure Description, Working Storage, Screen Form, or Report Form from the Program menu.
- Add or change an element (field) using the following column layouts.
File type Positions Definition Working storage (ProgramCode WS) 16 Element (field) name 40 LIKE 46 Element name $TRANS section in a form file (ProgramCode .scr) 9–29 Element (field) name 40–46 Element name $FIELDS section in a report file (ProgramCode . rpt) 8–27 Element (field) name 31–44 Element name Routine in a procedure file (ProgramCode PD) In place of an integer or constant SIZEOF_ElementName In place of an integer or constant DECSIZEOF_ElementName - Compile the program using the following syntax:
qcompile productline systemcode ProgramCode
For detailed instructions on compiling a program, see Doc for Developers: Application Development Workbench.