HP DDL D40 Reference Manual page 88

Data definition language
Table of Contents

Advertisement

Definitions and Records
FILE IS ["]file-name["]
identifies the alternate key file for the specified key; file-name is a DDL local or
network file name. You can enclose the file name in quotation marks. The default
file name is the primary file name with a number appended.
DUPLICATES [ NOT ] ALLOWED
specifies whether to allow duplicate alternate key values. You cannot specify
DUPLICATES ALLOWED for a primary key field. The default is to allow duplicate
alternate keys.
UPDATE [ NOT ] ALLOWED
specifies whether to allow updates for an alternate key file. The default is to allow
updates. This record attribute clause affects FUP output generated for the alternate
key.
SEQUENCE IS [ ASCENDING | DESCENDING ] {group-name |field-name}
specifies that the file is to be sorted on a nonkey field or group by the application
program. Only one field or group in a record can be used for this purpose.
[ ASCENDING | DESCENDING ]
specifies the sort order. The default sort order is ASCENDING.
{ group-name | field-name }
identifies the sort field. If the name is not unique to the dictionary, it must be
qualified to make it unique. The form of a qualified group or field name is:
[record-name.][group-name.]...{ group-name | field-name }
File Creation Guidelines
The following points are guidelines for using file creation attributes:
If file-creation is omitted, DDL derives the file name from record-name. The
file name is either the first 8 characters of record-name or all of the characters up
to the first hyphen if a hyphen occurs within the first 8 characters. The volume and
subvolume names are left undefined.
A single file can be defined by more than one RECORD statement in the same
dictionary. Only one record structure should be selected to generate FUP file
creation commands, or file-name conflicts will arise; other records can be defined
as TEMPORARY or ASSIGNED.
DDL ignores all file creation attributes when generating TACL source code from a
RECORD statement.
Data Definition Language (DDL) Reference Manual—426798-002
5- 22
Key Assignment Syntax

Advertisement

Table of Contents
loading

Table of Contents