COBOL Manual for TNS and TNS/R Programs
Environment Division
HP COBOL Manual for TNS and TNS/R Programs—522555-006
6-43
FILE-CONTROL Paragraph
ORGANIZATION clause
makes the organization of the file relative. (The default is sequential.)
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
ORGANIZATION IS
RELATIVE
VST048.vsd
ACCESS
MODE
SEQUENTIAL
RANDOM
RELATIVE KEY clause
IS
DYNAMIC
VST049.vsd
RELATIVE
KEY
rel-key
IS
VST050.vsd