COBOL Manual for TNS and TNS/R Programs
Procedure Division Verbs
HP COBOL Manual for TNS and TNS/R Programs—522555-006
9-140
OPEN
EXCLUSIVE
prevents other processes from reading or writing the file while this process
is open. EXCLUSIVE is the default for all other files.
sync
is a numeric literal that:
•
Specifies the number of write requests that cannot be tried again
whose I-O status code is to be recorded by the file system.
•
Determines the number of write operations that the primary process of
a process pair can perform on the file without doing a checkpoint to its
backup process.
•
If sync is 0, no checkpointing or automatic disk recovery is performed.
To allow recovery from the failure of a processor that is controlling the
disk during a write operation, the value of sync must be 1 or greater.
The default value of sync is 1.
REVERSED
is ignored with a warning.
NO REWIND
specifies that a tape is not to be rewound. This phrase applies to single-
reel, single-file tapes; single-reel, multiple-file tapes; and multiple-reel,
single-file tapes. If NO REWIND is specified for other types of files, it is
ignored. If NO REWIND is not specified for a tape file, the tape is rewound.
The tape must be positioned at the beginning of the file prior to the
execution of the OPEN statement. No file repositioning is done.
OUTPUT
specifies that the file or files in output-file-description are being
opened for writing only.
Note. The 1985 COBOL standard classifies REVERSED as obsolete, so you are
advised not to use it.