COBOL Manual for TNS/E Programs (H06.03+)
Run-Time Diagnostic Messages
HP COBOL Manual for TNS/E Programs—520347-003
48-34
Message List
164
Cause. The attempt to rewind the file during the processing of an OPEN statement
failed with Guardian error nnn.
Effect. The OPEN statement is unsuccessful with I-O status code “30.”
Recovery. Type ERROR nnn to see the meaning of the Guardian error; it might
indicate corrective action.
165
Cause. The device assigned to the COBOL file is not a legal device for COBOL input
or output.
Effect. The OPEN statement is unsuccessful with I-O status code “39.”
Recovery. Assign a file on a legal device.
166
Cause. The file referenced in an OPEN statement is locked (CLOSE LOCK was
executed). CLOSE LOCK is unrelated to LOCKFILE and UNLOCKFILE. A COBOL file
name associated with a disk file can become locked even if it is never opened. This
message appears when the disk file is also assigned to some other COBOL file name
with the same ASSIGN name in the same run unit, and a CLOSE LOCK is executed on
that file name.
Effect. The OPEN statement is unsuccessful with I-O status code “38.”
Recovery. Either do not close the file with lock or correct the program.
167
Cause. The file referenced in an OPEN statement is already open.
Effect. The OPEN statement is unsuccessful with I-O status code “41.”
Recovery. Correct the program.
OPEN rewind failed with error nnn
OPEN requested for an unsupported device
OPEN requested for a locked file
OPEN requested for an open file










