Definitions and Records
Data Definition Language (DDL) Reference Manual — 426798-002
5- 14
File-Creation Syntax
File-Creation Syntax
The following describes the syntax of the file-creation portion of a RECORD statement.
file-name
is a DDL local or network file name that identifies the database file to contain the
records defined in the RECORD statement. You can enclose the file name in
quotation marks.
TEMPORARY
specifies a temporary file. Temporary files are created programmatically and are
purged when closed. No FUP output is generated for temporary files.
ASSIGNED
indicates 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 an application
program and assign it to a physical file with an ASSIGN command before you run
the program. No FUP output is produced for assigned files.
FILE IS { ["]file-name["] }
{ TEMPORARY } [ creation-attribute ] ...
{ ASSIGNED }
creation-attribute is:
{ KEY-SEQUENCED }
{ RELATIVE }
{ ENTRY_SEQUENCED }
{ UNSTRUCTURED }
[ AUDIT ]
[ AUDITCOMPRESS]
[BLOCK { block-length | constant-name } ]
[ [ NO ] BUFFERED ]
[ BUFFERSIZE { buffer-size | constant-name } ]
[ CODE { file-code | constant-name } ]
[ { COMPRESS | DCOMPRESS | ICOMPRESS } ]
[ EXT { { extent-size | constant-name } }
{ ( { pri-extent-size | constant-name } ,
{ sec-extent-size | constant-name } ) } }
[ MAXEXTENTS { maximum-extents | constant-name } ]
[ NO ODDUNSTR ]
[ REFRESS ]
[ SERIALWRITES ]
[ VERIFYWRITES ]