COBOL Manual for TNS/E Programs (H06.08+, J06.03+)
211
Wrong open mode for WRITE
Cause
A WRITE statement was attempted on a relative or indexed on a file that does not meet any one
of these criteria:
• Its open mode is OUTPUT.
• Its open mode is EXTEND and its access mode is sequential.
• Its open mode is I-O and its access mode is not sequential.
A WRITE statement was attempted on a sequential file that does not meet any of these criteria:
1. Its open mode is EXTEND or OUTPUT.
2. Its open mode is I-O and the device assigned is a process, a terminal or $RECEIVE.
Effect
The statement is unsuccessful with I-O status code “48” except for Item 2 for sequential, in which
the I-O status code is “90.”
Recovery
Correct the program or assign the correct device.
212
Wrong length record specified for WRITE or REWRITE
Cause
The record length specified in the program (either by an OCCURS DEPENDING clause in the
record description of the record being written or by the DEPENDING identifier in the RECORD
VARYING clause in the file description entry) is shorter than the minimum or larger than the
maximum length specified in the RECORD clause.
Effect
The WRITE or REWRITE statement is unsuccessful with I-O status code “44.”
Recovery
Correct the program—in either the record length calculation or the RECORD clause.
213
OPEN EXTEND for file not on extend device
Cause
A file is being opened for EXTEND, but the device assigned is an illegal device or an input-only
device (such as a card reader).
Effect
The OPEN statement is unsuccessful with I-O status code “37.”
Recovery
Assign the proper device or file.
214
OPEN I-O for file not on input-output device
Cause
A file is being opened for I-O, but the device assigned is an illegal device or an input- or
output-only device (such as a magnetic tape).
Message List 1217










