Data Definition Language (DDL) Reference Manual

Definitions and Records
Data Definition Language (DDL) Reference Manual529431-004
5-11
File-Creation Syntax
If you omit file-creation from the RECORD statement:
The DDL compiler derives file-name from record-name : If record-name
has a hyphen (-) within its first 8 characters, file-name is all of the characters up
to the first hyphen; otherwise, file-name is the first 8 characters of record-
name. Volume and subvolume names are undefined.
The DDL compiler assigns a file type:
If you do not specify a file type in FUP, FUP automatically creates the file as
unstructured. DDL and FUP also have different default file attributes (see Table 5-1
on page 5-11).
If the record has ... File type is ...
A primary key Key-sequenced
No keys (an unstructured file can have a SEQUENCE IS clause) Unstructured
One or more alternate keys and a SEQUENCE IS clause but no
primary key
Entry-Sequenced
One or more alternate keys but no primary key or SEQUENCE IS
clause
Relative
Table 5-1. File Attributes for DDL and FUP
File Attribute File Type
Default Value
DDL FUP
BLOCK Key-sequenced
Relative
Entry-sequenced
4096 bytes 4096 bytes
EXT All Primary: 4 pages*
Secondary: 32 pages
Determined by file type
and block or buffer size
(see the File Utility
Program (FUP)
Reference Manual)
MAXEXTENTS All 100 16
NO ODDUNSTR Unstructured Odd Even
*
In H06.28/J06.17 RVUs with specific SPRs and later RVUs, the default is 16 pages if a block of 32768 bytes is
provided for key-sequenced files.
For a list of the required H06.28/J06.17 SPRs, see Section , SPR Requirements for Increased Enscribe Limits
for the H06.28/J06.17 Release.