COBOL Manual for TNS/E Programs (H06.08+, J06.03+)
48 Run-Time Diagnostic Messages
This section explains the run-time diagnostic messages that can be reported if an HP COBOL
process encounters an error condition.
Where Messages Are Reported
If an EXECUTION-LOG parameter is currently defined, run-time diagnostic messages are reported
to the destination that the EXECUTION-LOG parameter specifies (see PARAM Command (page 586));
otherwise, they are delivered to the home terminal of the process.
Standard Message Format
The standard format of a run-time diagnostic message is:
pn - *** Run-time Error nnn ***
pn - message
[ pn - File COBOL-file-name = assigned-file-name, open-status ]
pn - From prog-id + %pppppp, UC.00
[ pn - prog-id + %pppppp ] ...
[ pn - additional-message ] ...
surrounds optional material.[ ]
is the process name or process ID of the process that caused the error report.pn
is the message number from the CRE.nnn
is the specification of the code location of the error.prog-id + %pppppp
is the name of the program (from the PROGRAM-ID paragraph) in which the error occurred.prog-id
is the octal offset within the code block.If a series of similar lines (without the word From
) follows, it is a traceback of one or more lines to show the CALL history, starting with the
program in which the error occurred, then its caller, and so on back to the main program.
%pppppp
is the error message text.message
is any additional information about the problem, such as the name of the file that caused
the error.
additional-message
applies only to I-O errors and is the name of the file in error (the file-name in the SELECT
clause).
COBOL-file-name
is the file system name of the file assigned to COBOL-file-name.assigned-file-name
is an open mode (INPUT, OUTPUT, I-O, EXTEND or CLOSED).open-status
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
1178 Run-Time Diagnostic Messages










