Software AG Products 2.4.1 | Reference Guide | Declaration Command | field-expressions | Group Fields
 
Group Fields
If the field name specified is a group field (field type GR in Predict), Adabas Pre-Compiler automatically generates declarations for the lower-level fields at all levels, according to the Predict definition. The field names are the full field names as defined in Predict. To use other names (synonyms), code the names after the group-name within parentheses. The sequence of the lower-level field names must be consistent with the field definition table. You may also use the synonyms in Predict with the @OPTIONS SYNONYM statement.
For example:
@ADADCL1, EMPLOYEES, FULL-NAME.
The record buffer definition is:
01 RECORD-BUF1.
02 FULL-NAME1.
03 FIRST-NAME1 PIC X(20).
03 MIDDLE-I1 PIC X .
03 NAME1 PIC X(20).