Data Definition Language (DDL) Reference Manual

Definition Attributes
Data Definition Language (DDL) Reference Manual529431-004
6-85
89 Enumeration
89 Enumeration
In a field of type ENUM, a level-89 enumeration clause associates a name and
(optionally) a display string with an enumeration value.
89
is the level number of the enumeration clause.
value-name
is a name that uniquely identifies the enumeration value.
VALUE { value | constant-name }
specifies a value to associate with value-name. You can specify value-name
either as an integer or as the name of a constant in the open dictionary. The value
of value-name must be an integer from -32,768 through 32,767.
Enumeration clauses for the same field cannot specify the same value.
Default values:
For the first enumeration clause: zero
For any subsequent enumeration clause: 1 more than the previous value
AS-clause
specifies a display string that represents the enumeration value (see AS on
page 6-3).
Default display string: value-name
A single-field definition that has one or more level-89 enumeration clauses must also
have BEGIN before the first period and END after the last clause.
One or more level-89 clauses can follow the definition attribute clauses in a field
definition or description. Level-89 clauses cannot directly follow a group definition or
description.
89 value-name [ VALUE value ] [ AS-clause ]