COBOL Manual for TNS and TNS/R Programs

Run-Time Diagnostic Messages
HP COBOL Manual for TNS and TNS/R Programs522555-006
48-48
Message List
Recovery. Type ERROR nnn to see the meaning of the Guardian error; it might
indicate corrective action.
165 (040)
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 (041)
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 (042)
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.
168 (043)
Cause. The file referenced in an OPEN statement for a file with LINAGE specified is
not assigned to a printer or a process (a spooler, for example).
Effect. The OPEN statement is unsuccessful with I-O status code “39.”
OPEN requested for an unsupported device
OPEN requested for a locked file
OPEN requested for an open file
LINAGE file not on printer or process