COBOL Manual for TNS and TNS/R Programs

Environment Division
HP COBOL Manual for TNS and TNS/R Programs522555-006
6-49
FILE-CONTROL Paragraph
number
is a numeric literal, an unsigned integer.
In the non-CRE environment, number must be in the range 1 through 8, and
its value is interpreted:
In the CRE, 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
Value of number Effect
1 No buffering or HP COBOL Fast I-O
2 or greater Sequential block buffering for input and buffered cache for
output if the assigned file qualifies
number is the number of blocks to buffer.
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