COBOL Manual for TNS and TNS/R Programs

Run-Time Diagnostic Messages
HP COBOL Manual for TNS and TNS/R Programs522555-006
48-6
Input-Output Error Messages
Input-Output Error Messages
An input-output error message refers to a COBOL file or to a device specified in an
ACCEPT or DISPLAY statement. An input-output error message has additional
messages that report:
A Guardian error number
A line identifying the file that caused the error
In Example 48-2, the line
\BEANS.11,047 - OPEN operation failed with error 48
reports that the file could not be opened due to a Guardian error 48 (security violation).
The next line,
\BEANS.11,047 - File BWORK=$WILLIS.AUDITX3.GRIP: CLOSED
identifies the file that caused the error. Its COBOL file name is BWORK, and its
Guardian file name is $WILLIS.AUDITX3.GRIP.
SORT Error Messages
A SORT error message arises from a SORT, RELEASE, or RETURN statement. A
SORT error message is followed by a SORT diagnostic line. For explanation of the
SORT diagnostic line, see the FastSort Manual.
Example 48-2. Input-Output Error Message (Non-CRE Environment)
\BEANS.11,047 - *** COBOL85 Library Error 057 ***
\BEANS.11,047 - From MANE.BBB + %422
\BEANS.11,047 - MANE.AAA + %254
\BEANS.11,047 - MANE + %1234
\BEANS.11,047 - $MURPHY.AUDITX3.PRIVATE - 30 Sep 86 15:48
\BEANS.11,047 - OPEN operation failed with error 48
\BEANS.11,047 - File BWORK=$WILLIS.AUDITX3.GRIP: CLOSED
ABENDED: 11,47
Example 48-3. Input-Output Error Message (CRE)
\DRP12.$:0:622:163577460 - *** Run-time Error 181 ***
\DRP12.$:0:622:163577460 - OPEN operation failed with error 48
\DRP12.$:0:622:163577460 - File BWORK = \DRP12.$DATA4.PTR.GRIP, closed
\DRP12.$:0:622:163577460 - From COBLIB_IO_ERROR_ + 0x660 (DLL zcobdll)
\DRP12.$:0:622:163577460 - COBLIB_OPEN_ + 0x5120 (DLL zcobdll)
\DRP12.$:0:622:163577460 - .BBB + 0x1C0 (UCr)
\DRP12.$:0:622:163577460 - .AAA + 0x90 (UCr)
\DRP12.$:0:622:163577460 - MANE + 0x130 (UCr)