You can use predefined fields to create definitions for your screen fields, unless these fields have a syntax of RD (raw data) or UN (Unicode). There are two types of predefined fields:
You can use a field(s) and its definition from a predefined table to simplify the assignment of data and promote the shareability of data definitions. To use a field in a table, use one of the following primary commands:
To copy a field(s) and its definition from a predefined table, use the COPY command. The field is copied into the current screen table (the image area is cleared for you when you invoke the command). If there is not sufficient room, only the fields that fit in the screen table are copied. Specify one of the following:
You can also specify the option NONAMES. If the NONAMES option is not used, the field name is copied as a literal with the field added beside it. If the NONAMES option is specified, the field name is not copied as a literal.
To append a field(s) and its definition from a named table into the current screen table, use the
APPEND command. The field is added at the line below the cursor position, if there is sufficient room. If there is insufficient room, only the fields that fit in the screen table are appended. If the cursor is not positioned in the image area, the fields are added after the existing fields. Specify one of the following:
You can also specify the option NONAMES. If the NONAMES option is not used, the field name is copied as a literal with the field added beside it. If the NONAMES option is specified, the field name is not copied as a literal.
Global fields standardize the position, name, and how your fields use data across your screens. They are used to create standard definitions across the database. The following example illustrates the Global Field Dictionary screen:
The following example illustrates the MANAGER and
USERID fields added to your screen table definition from the Global Field Dictionary: