COBOL Manual for TNS and TNS/R Programs
Using HP COBOL in the OSS Environment
HP COBOL Manual for TNS and TNS/R Programs—522555-006
19-17
OPEN Statement
OPEN Statement
The OPEN statement has this file-specification:
INPUT
specifies that the file or files in input-file-description are being opened for
reading only.
input-file-description
infile
is the file description file name of a file to open in INPUT mode, for read
operations only.
SHARED
allows other processes to read or write the file while this process is open.
SHARED is the default for terminals.
PROTECTED
allows other processes to read but not write the file while this process is open.
PROTECTED is the default for input files that are not terminals.
INPUT input-file-description
OUTPUT output-file-description
I-O i-o-file-description
EXTEND extend-file-description
VST187.vsd
infile
SHARED
PROTECTED
EXCLUSIVE
VST627.vsd