COBOL Manual for TNS and TNS/R Programs

Environment Division
HP COBOL Manual for TNS and TNS/R Programs522555-006
6-44
FILE-CONTROL Paragraph
rel-key
is an integer data item to be used as a prime key to specify records within the
file. It must be large enough to hold the maximum record number. Its definition
cannot be in a record description entry for that file. It can be in another record
description entry or in the Working-Storage Section, Extended-Storage Section,
or Linkage Section.
ALTERNATE RECORD KEY clause
alt-key
is an alphanumeric or unsigned numeric data item declared in the record
description entry of the file. It is used to access records within the file. Its size
and location must agree with the size and location of the alternate key within
the file, defined when the alternate key file was established by the Guardian
environment File Utility Program (FUP). (For information about FUP, see the
File Utility Program (FUP) Reference Manual.)
DUPLICATES
means that alternate key values are not necessarily unique.
FILE STATUS clause
defines filestat as the file-status data item for the file. When a COBOL run-
time IO routine completes an operation on the file, it stores the status code in
filestat before returning control to your program (see I-O Status Code).
filestat
is a 2-character alphanumeric, nonnational data item defined in the Working-
Storage Section, Extended-Storage Section, or Linkage Section.
RECORD
KEY
IS
alt-key
WITH
DUPLICATES
ALTERNATE
VST045.vsd
STATUS
ISFILE
filestat
VST046.vsd