COBOL Manual for TNS and TNS/R Programs

Creating and Compiling HP COBOL Source
Programs
HP COBOL Manual for TNS and TNS/R Programs522555-006
22-50
Diagnostic Messages
For a list of all the compiler diagnostic messages and their probable causes, see
Section 47, Compiler Diagnostic Messages. For a list of all the Binder messages and
their probable causes, see the Binder Manual.
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.
For more information about the directives in Table 22-3, see Compiler Directives.
Compiler Error Messages
An error message reports a serious violation of HP COBOL syntax or semantics. At the
first error message, the compiler stops generating code for the current program unit
and deletes any code that it has already generated for that program unit. You cannot
suppress error messages.
Like many error messages, this example reports the identifier that the compiler was
processing or seeking when it detected the error (in this case, COUNTER).
Example 22-17. Warning Message
** Warning 25 ** Blank continuation line
Table 22-3. Compiler Directives That Produce Optional Warnings
Directive Produces warnings for ...
DIAGNOSE-74 Statements that might behave differently in HP COBOL and COBOL 74
DIAGNOSE-85* Statements that might behave differently when compiled by the
COBOL85 and NMCOBOL compilers
DIAGNOSEALL Multiple references to undefined identifiers (instead of the first one
only)
FIPS Statements as required by the Federal Information Processing
Standard (FIPS)
SUBSET HP extensions to ANSI COBOL and obsolete elements
* For NMCOBOL compiler only.
Example 22-18. Error Message
** Error 44 ** Syntax error detected at token COUNTER