Data Definition Language (DDL) Reference Manual
Definitions and Records
Data Definition Language (DDL) Reference Manual—529431-004
5-5
Group Definition
Group Definition
This DEFINITION statement defines a group of fields or a group of groups.
For descriptions of clauses, see Syntax Elements
on page 5-21.
Each field or group within a group DEFINITION statement must be defined by at least
a level number and a name. The level number must precede the group or field name.
Other clauses can follow in any order.
A group DEFINITION statement can contain nested group descriptions, which must
contain at least one field description.
Every field within a group DEFINITION statement must be described with a PICTURE
or TYPE clause; a group description cannot have either clause.
Example 5-1. Field Definitions
DEF company-name TYPE CHARACTER 30 NULL 0 .
DEF custnum PIC 9(6) HEADING "Customer/Number" .
DEF status TYPE ENUM BEGIN.
89 no-error.
89 read-error VALUE 3.
89 write-error.
END.
DEF[INITION] def-name
[ DISPLAY-clause ]
[ EXTERNAL-clause ]
[ HEADING-clause ]
[ HELP-clause ]
[ NULL-clause ]
[ SQLNULLABLE-clause ]
[ USAGE-clause ]
[ VALUE-clause ] .
line-item specification ...
[ 66-RENAMES-clause . ] ...
END [ . ]