Data Definition Language (DDL) Reference Manual

Definitions and Records
Data Definition Language (DDL) Reference Manual529431-004
5-24
Other Elements
def-name-1 TYPE def-name-2
defines a new data structure, def-name-1, by referring to a previously defined
data structure, def-name-2. Both def-name-1 and def-name-2 are DLL
names.
END [ . ]
ends either a group DEFINITION statement, a single-field DEFINITION statement
that includes BEGIN, or a RECORD statement.
level-number { field-name | group-name | FILLER }
specifies a field or group of fields within a group definition.
level-number
is a two-digit number from 02 through 49 that establishes the hierarchy of fields
or groups of fields within the definition or record.
Level number rules:
The DEFINITION or RECORD statement does not have a level number; it
is implicitly at level 01.
Each group and field within a group DEFINITION statement or a RECORD
statement has a level number to indicate its relationship to other groups
and fields within the group. A group of level nn includes all following
groups and fields with level numbers greater than nn up to the next group
or field of level nn or less.
Level numbers need not be assigned sequentially. For instance, an
level-02 group can contain two level-05 fields with no intervening level-03
or level-04 fields.
If a field is defined by a TYPE clause that refers to a group definition, the
field’s level number replaces the implicit level-01 number of the referenced
definition, and the level numbers of the definition’s member fields are
adjusted accordingly.
If a field is defined by a TYPE clause that refers to a previous definition,
the level number of any element following the field must be less than or
equal to the level number of the field.
field-name
is a name that uniquely identifies a field within the enclosing group description
or definition.
group-name
is a name that uniquely identifies a group within the enclosing group
description or definition.