COBOL Manual for TNS/E Programs (H06.08+, J06.03+)
47 Compiler Diagnostic Messages
Table 145 Warning, Error, and Failure Characteristics
Object File is SuppressedCode Generation is
Suppressed
Compilation ContinuesReportsMessage Type
NoNoYesQuestionable conditionWarning
In some casesFor current separately
compiled program
YesSerious syntactic or
semantic violation
Error
YesYesNoCondition so severe that
compilation cannot
continue
Failure
Message Indicator Line
A message indicator line precedes each compiler diagnostic message. If possible, the message
indicator line specifies the location of the problem or the unacceptable object with one or more of
these:
• A caret (^) showing where in the source line the compiler recognized the problem
• The user-defined name of the object that the problem involves
The message indicator line cannot always tell you exactly where the problem is because the problem
might not be recognizable (and reportable) until the compiler is past the source line that contains
it.
Table 146 Problem Discovery Time, Message Indicator Line Contents, and Problem Location
Problem LocationMessage Indicator Line ContentsProblem Discovery Time
Language element marked by caret,
source file line number nnnnn
Caret (^) (usually), “Problem on line
nnnnn ” (maybe)
During textual or syntactic analysis of
a particular source file line
In vicinity of source file line number
nnnnn, language element marked by
caret
“Problem on line nnnnn ” (usually),
caret (^) (maybe)
During semantic analysis of an
operand phrase, clause, or statement
With the named object, in vicinity of
source file line number nnnnn
User-defined name of object, “Problem
on line nnnnn ” (maybe)
After analyzing many source lines,
possibly an entire source program
Example 318 Message Indicator Line
13 MOVE "" TO A.
*** Error: ^
--> Null literal [Error 30]
Warning Message Format
A warning message has this format:
*** Warning:
--> message-text [Warning message-number]
The brackets are part of the message, not indicators that the bracketed material is optional.
Error Message Format
An error message has this format:
*** Error:
--> message-text [Error message-number]
Message Indicator Line 1107










