COBOL Manual for TNS/E Programs (H06.08+, J06.03+)

189
Sequential READ requested when current position is undefined
Cause
The program attempted to execute a sequential READ statement when the last operation was
not a successful READ, OPEN, or START. One common cause is attempting to do a READ after
an at-end condition occurs.
Effect
The READ statement is unsuccessful with I-O status code “46.
Recovery
Correct the program.
190
Wrong open mode for READ
Cause
The program attempted to execute a READ statement, but the open mode for the file is not INPUT
or I-O.
Effect
The READ statement is unsuccessful with I-O status code “47.
Recovery
Correct the program.
191
Reel swap failed with error nnn
Cause
An attempt to do a tape reel swap failed. If the failure was due to a system error, nnn is the
Guardian error code. If the failure was due to the operator responding incorrectly to the swap
requests, nnn is 0.
Effect
The READ statement is unsuccessful with I-O status code “30.
Recovery
Correct the cause of the problem.
192
Sequential REWRITE must follow successful READ
Cause
The program attempted to execute a REWRITE statement to a file for which ACCESS MODE
SEQUENTIAL is specified, and the last operation on the file was not a successful READ statement
(for example, an at-end condition resulted).
Effect
The REWRITE statement is unsuccessful with I-O status code “43.
Recovery
Correct the program.
193
REWRITE positioning failed with error nnn
1212 Run-Time Diagnostic Messages