COBOL Manual for TNS/E Programs (H06.08+, J06.03+)

For embedded SQL/MX statements, you always use the preprocessor to produce the object file
(see the SQL/MX Programming Manual for C and COBOL).
If you used the preprocessor, the SQL/MP or SQL/MX commands in your HP COBOL source
program appear in the compiler listing in their processed form (that is, as SQL/MP or SQL/MX
data structures, PERFORM statements, and calls to TAL routines). If the compiler detects an error
in a processed SQL/MP or SQL/MX statement, it prints the error message after the offending
SQL/MP or SQL/MX data structure, PERFORM statement, or TAL routine call.
If you do not use the preprocessor, the SQL/MP or SQL/MX commands in your HP COBOL source
program appear in the compiler listing exactly as they appear in the source program. SQL/MP
or SQL/MX data structures, PERFORM statements, or calls to TAL routines that the compiler generated
do not appear in the compiler listing (except called or included data structures). If the compiler
detects an error in an embedded SQL/MP or SQL/MX statement, it prints the error message after
the offending SQL/MP or SQL/MX statement itself.
Diagnostic Messages
Table 108 Compiler Diagnostic Messages in the Compiler Listing
Can Be
Documented in
Error FileWhen PrintedSuppressableNumberedSubcategory
Diagnostic
Message
Category
YesAfter detectionYesYesWarningCompiler
YesAfter detectionNoYesError
NoAfter detectionNoYesFailure
NoAfter all compiler
diagnostic
YesYesInformationalLinker (if compiler
calls it)
messages have
been printed
Topics:
Compiler Warning Messages
Compiler Error Messages
Compiler Failure Messages
Error Files
For a list of all the compiler diagnostic messages and their probable causes, see Chapter 47:
Compiler Diagnostic Messages (page 1107).
Compiler Warning Messages
A warning message reports a questionable condition. A warning does not prevent the generation
of code. You can suppress warning messages with the NOWARN directive.
Example 244 Warning Message
** Warning 25 ** Blank continuation line
Table 109 Compiler Directives That Produce Optional Warnings
Produces warnings for ...Directive
Statements that might behave differently in HP COBOL and COBOL 74DIAGNOSE-74
Statements that might behave differently when compiled by the COBOL85 and NM
ECOBOL compilers
DIAGNOSE-85
Multiple references to undefined identifiers (instead of the first one only)DIAGNOSEALL
774 Creating and Compiling HP COBOL Source Programs