COBOL Manual for TNS/E Programs (H06.03+)
Environment Division
HP COBOL Manual for TNS/E Programs—520347-003
6-40
FILE-CONTROL Paragraph
ACCESS MODE clause
SEQUENTIAL
makes the access mode of the file sequential (the default). That means the
records of the file are to be operated upon as if they were sequentially
organized.
RANDOM
makes the access mode of the file random. That means the records of the file
are to be operated upon in any order, as selected by the current value of the
relative key or an alternate key.
DYNAMIC
makes the access mode of the file dynamic. That means the records of the file
are accessible by either sequential or random access; you can position the file
to a certain key value with START and read or write sequentially from there.
RELATIVE KEY clause
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.
ACCESS
MODE
SEQUENTIAL
RANDOM
RELATIVE KEY clause
IS
DYNAMIC
VST049.vsd
RELATIVE
KEY
rel-key
IS
VST050.vsd










