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-51
Diagnostic Messages
Although the compiler stops generating code when it encounters the first error, it
continues with the compilation, reporting as many diagnostic messages as it can.
Because an error can leave the compiler with incorrect or incomplete information, the
compiler might report errors in later statements that are actually correct. (The later
errors are side effects of the earlier ones.) If you do not understand certain error
messages, fix the errors you do understand and the others might disappear or be
expressed in an understandable way in the next compilation.
For the COBOL85 compiler, if the IN file contains more than one separately compiled
program, errors in one program do not prevent the others from being compiled. The
object file will contain only the object programs for the programs that compiled without
errors. You can recompile the entire set of programs, or you can fix the erroneous
statements, recompile only the programs that did not compile the first time, and use the
BIND utility to combine the two object files into one.
If the NMCOBOL compiler finds errors in any program in the IN file, it does not produce
any object programs (that is, it produces no object file).
Compiler Failure Messages
A failure message reports a condition so severe that the compiler is unable to continue.
Any code that the compiler has already generated during the current compilation
session is lost. You cannot suppress failure messages.
INSPCI Error Messages
A message of the form
**** INSPCI ERROR AT P=%nnnnn ...
or
PCI FATAL ERROR: nnn AT P = %nnnnnn ...
(where n is a digit) means that an error occurred in the communication mechanism
between the COBOL85 compiler and Binder (the PDT-compiler interface, or PCI).
Report the error to your service provider.
Example 22-19. Failure Message
For the COBOL85 compiler:
** Failure message-number ** message-text
For the NMCOBOL compiler:
*** Failure:
--> message-text [Warning message-number]
The brackets are part of the message, not indicators that the bracketed material is optional.