Definition Attributes
Data Definition Language (DDL) Reference Manual — 426798-002
6- 13
KEYTAG Clause
KEYTAG Clause
The KEYTAG clause declares that the field or group is an Enscribe key field. Key fields
can overlap each other.
DDL ignores this clause when generating TACL source code.
key-specifier
is any number from -32,768 to 32,767, or 2 ASCII characters enclosed in quotation
marks. You can omit
key-specifier
for a primary key, but if you include it, it
must be 0. A nonzero value for
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.
DUPLICATES [NOT] ALLOWED
specifies whether duplicate alternate key values are allowed. The default is to
allow duplicate alternate key values. You cannot use DUPLICATES ALLOWED for
a primary key field.
KEYTAG Clause Guidelines
The following points are guidelines for using the KEYTAG clause:
•
The KEYTAG clause is only for specifying key fields in records. You cannot use the
KEYTAG clause in a DEFINITION statement.
•
If you use the KEYTAG clause to declare a record’s key fields, you can omit the
key-assignment
part of the RECORD statement.
Keytag {key-specifier} [DUPLICATES [NOT] ALLOWED]
{constant-name}