COBOL Manual for TNS/E Programs (H06.03+)
Using HP COBOL in the OSS Environment
HP COBOL Manual for TNS/E Programs—520347-003
19-16
OPEN Statement
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.
EXCLUSIVE
prevents other processes from reading or writing the file while this process is
open. EXCLUSIVE is the default for all other files.
OUTPUT
specifies that the file or files in output-file-description are being opened
for writing only.
output-file-description
outfile
is the file description file name of a file to open in OUTPUT mode, for write
operations only.
infile
SHARED
PROTECTED
EXCLUSIVE
VST627.vsd
outfile
SHARED
PROTECTED
EXCLUSIVE
VST628.vsd










