Data Definition Language (DDL) Reference Manual

Definitions and Records
Data Definition Language (DDL) Reference Manual529431-004
5-10
File-Creation Syntax
File-Creation Syntax
In the statement RECORD on page 5-8, file-creation specifies either the name
or the type of the disk file that will store occurrences of the record.
file-name
is the name of a disk file that is to contain occurrences of the record defined in the
RECORD statement.
file-name can appear in more than one RECORD statement in the same
dictionary. To avoid file name conflicts:
Select one record structure to generate FUP file-creation commands.
Define other record structures as TEMPORARY or ASSIGNED.
TEMPORARY
specifies that the disk file that will store occurrences of the record is a temporary
file (created programmatically and purged when closed).
ASSIGNED
specifies that the record is a logical record with the same structure as one or more
physical records.
You can include the logical record definition in a program and assign the logical
record to a physical file with a TACL ASSIGN command before you run the
program.
creation-attribute
is an attribute of the disk file that will store occurrences of the record (see Creation-
Attribute Syntax on page 5-12).
FILE IS { ["]file-name["] } [ creation-attribute ] ...
{ TEMPORARY }
{ ASSIGNED }
Note. FUP output is not generated for temporary files.
Note. FUP output is not generated for assigned files.
Note. The DDL compiler ignores creation-attribute when generating TACL source
code from a RECORD statement.