COBOL Manual for TNS and TNS/R Programs

Run-Time Diagnostic Messages
HP COBOL Manual for TNS and TNS/R Programs522555-006
48-5
Standard Message Format—CRE
Standard Message Format—CRE
In the CRE, 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.
pn is the process name or process ID of the process that caused
the error report.
nnn is the message number from the CRE.
prog-id +
%pppppp
is the specification of the code location of the error.
prog-id is the name of the program (from the PROGRAM-ID
paragraph) in which the error occurred.
%pppppp 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.
message is the error message text.
additional-
message
is any additional information about the problem, such as the
name of the file that caused the error.
COBOL-file-
name
applies only to I-O errors and is the name of the file in error
(the file-name in the SELECT clause).
assigned-file-
name
is the file system name of the file assigned to COBOL-file-
name.
open-status is an open mode (INPUT, OUTPUT, I-O, EXTEND or
CLOSED).