Data Definition Language (DDL) Reference Manual

Definitions and Records
Data Definition Language (DDL) Reference Manual529431-004
5-8
Error Handling
Error Handling
When the DDL compiler encounters an error in a DEFINITION statement, it continues
processing the statement to determine if there are other errors before processing the
next statement. The DDL compiler does not add the definition to the dictionary, and if
any source code files are open, the DDL compiler does not write the definition to those
files.
An extra period in a group definition might cause the DDL compiler to not report any
additional errors until it encounters END.
RECORD
The RECORD statement defines a disk file record, specifying the record’s file name
and type. If the file is structured, the RECORD statement also identifies the key fields
and assigns a key specifier to any alternate keys.
If a dictionary is open, the DDL compiler stores the record in the dictionary. If a record
of the same name already exists, the DDL compiler replaces the existing record with
the new record.
Depending on which source code files are open, the DDL compiler writes the record to
a DDL source code file, writes source code to describe the record to a host-language
source code file, and writes the file creation commands to a FUP source code file.
record-name
is the name of the record to be added to, or replaced in, the open dictionary.
file-creation
specifies either the name or the type of the disk file that will store occurrences of
the record (see File-Creation Syntax on page 5-10).
record-structure
specifies the data structure of the record and (optionally) identifies primary and
alternate keys (see Record Structure Syntax
on page 5-15).
RECORD record-name .
[ file-creation ]
{ record-structure | record-reference }
[ key-assignment ]
END [ . ]