Definitions and Records
Data Definition Language (DDL) Reference Manual — 426798-002
5- 13
Parts of the RECORD Statement
The syntax of the RECORD statement is as follows:
record-name
is a DDL name that uniquely identifies the record in a dictionary. No record can
have the same name as any other object in the dictionary. For rules governing DDL
names, see
Section 2, DDL Language Elements
.
If a dictionary is open, DDL adds the record identified by record-name to the
dictionary, replacing any existing record with the same name.
file-creation
declares the name and type of the disk file that will store occurrences of the record.
If file-creation is omitted, DDL assigns a default file name and file type according to
the rules described under
File Creation Guidelines
on page 5-22. For the full
syntax of this part of the RECORD statement, see
File-Creation Syntax
on
page 5-14.
record-structure
defines the data structure of the record; optionally, specifies any group or field
within the structure as the primary key of a key-sequenced file or an alternate key
of a structured file. For the full syntax of this part of the RECORD statement, see
Reference Record Structure Syntax
on page 5-17 or
Record Structure Syntax
on
page 5-18.
key-assignment
defines one or more fields or groups of fields as Enscribe keys, assigns key
specifiers to key fields, and specifies that a file is to be sorted on a nonkey field or
group of fields. You can omit key-assignment if the record has no key fields or if
you declare its key fields in a KEYTAG clause. For the full syntax of this part of the
RECORD statement, see
Key Assignment Syntax
on page 5-21.
END [ . ]
terminates the RECORD statement.
RECORD record-name .
[ file-creation ]
record-structure
[ key-assignment ]
END [ . ]