COBOL Manual for TNS and TNS/R Programs
Run-Time Diagnostic Messages
HP COBOL Manual for TNS and TNS/R Programs—522555-006
48-10
How to Use the Message List
•
Remove the INITIAL phrase from the program header and explicitly cancel the
program after every call to it (see CANCEL).
How to Use the Message List
This topic lists and explains all the run-time diagnostic messages that can be reported
for an HP COBOL program that either runs in the non-CRE environment or runs in the
CRE but does not call any non-COBOL routines.
If your HP COBOL program runs in the CRE and calls non-COBOL routines, errors in
those routines can cause additional messages to be reported. For a complete list of
CRE run-time diagnostic messages, see the CRE Programmer’s Guide.
The messages in Message List are in numeric order by CRE message number. The
corresponding COBOL message number is beneath the CRE message number, in
parentheses. If you know only the COBOL message number, use Table 48-1 to find its
corresponding CRE message number.
If a COBOL message number has no corresponding CRE message, Table 48-1 shows
“none.” Such messages are in numeric order by COBOL message number at the end
of “Message List.”
Some CRE error numbers correspond to multiple COBOL85 error message numbers
(for example, CRE error 26 corresponds to COBOL85 errors 015 and 106). The
reverse is true also (CRE errors 2 through 9 correspond to COBOL85 error 121).
When corresponding CRE and COBOL messages have identical message texts, they
are listed this way:
CRE Number (COBOL85 Number)
Cause. Cause of the error.
Effect. What the run-time routines did. For errors that do not involve input-output
operations, the run-time routines usually just report the message and terminate the
process. For input-output errors, the run-time routines:
•
Report the message.
•
Set the status code and the GUARDIAN-ERR special register.
•
If the program contains a corresponding declarative section, perform the
declarative.
•
Either terminate execution or continue, depending upon the value of the status
code.
Recovery. Suggestions for recovering from the error or preventing its recurrence.
Message text