COBOL Manual for TNS/E Programs (H06.03+)

Environment Division
HP COBOL Manual for TNS/E Programs520347-003
6-46
FILE-CONTROL Paragraph
number
is a numeric literal, an unsigned integer.
number must be in the range 1 through 32, and its value is interpreted:
ORGANIZATION clause
makes the organization of the file indexed (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
record key or of an alternate key. The default access mode is sequential.
Value of number Effect
1 No buffering or HP COBOL Fast I-O
2 Sequential block buffering on input and buffered cache on
output if the assigned file qualifies
3 or greater HP COBOL Fast I-O if the assigned file qualifies; if not,
sequential block buffering for input and buffered cache for
output if the assigned file qualifies; otherwise normal I-O
number is the number of blocks to buffer.
Caution. Do not use sequential block buffering for a file opened for shared access. If you do,
a process could read outdated data while another process alters the file. For information on
shared access, see OPEN
.
ORGANIZATION IS
INDEXED
VST052.vsd
ACCESS
MODE IS
SEQUENTIAL
RANDOM
DYNAMIC
VST053.vsd