Definitions and Records
Data Definition Language (DDL) Reference Manual — 426798-002
5- 21
Key Assignment Syntax
89 enumeration clause
associates a name with a specified or default enumeration value and, optionally,
specifies a display string for the value.
66 RENAMES clause
renames a previously declared field, group, or set of fields or groups, only for
COBOL or DDL source code.
Key Assignment Syntax
The following syntax is used to define key assignments.
KEY [ key-specifier | constant-name ]
IS { group-name | field-name }
defines a field or group of fields as an Enscribe key and assigns a key specifier to
the key.
key-specifier
is either an integer from -32,768 to 32,767 or two ASCII characters enclosed in
quotation marks. The key specifier can be omitted for a primary key; if
included, the key specifier must be 0. A nonzero key specifier indicates an
alternate key.
constant-name
is the name of a constant in the open DDL dictionary. The constant value must
be a valid
key-specifier
value.
{ group-name | field-name }
identifies a group or field used as a primary or alternate key, or as a sequence
field. If not unique within the dictionary, the name must be qualified to make it
unique. The general form of a qualified group or field name is:
[record-name.][group-name.]...{ group-name | field-name }
KEY [ key-specifier | constant-name ]
IS { group-name | field-name }
[ FILE IS ["]file-name["] ]
[ DUPLICATES [ NOT ] ALLOWED ] . ] ...
[ UPDATE [ NOT ] ALLOWED ]
[ SEQUENCE IS [ ASCENDING | DESCENDING ]
{ group-name | field-name } . ]