Provides information on COBOL compiler error messages and where to find more information on resolving issues detected by the
compiler.
Error Messages
The
Micro Focus COBOL compiler can output one or more of a variety of error messages that you should use to troubleshoot your application. Error
messages returned from the COBOL compiler define the problem encountered. The corresponding Help topic for each message explains
the error or problem that causes the message, and where possible, gives advice on how to fix or prevent it.
Note: Help topics do not indicate the severity of the problem encountered, as the same message can be output with a different severity
depending on the setting of compiler directives.
To troubleshoot compiler problems, look for following types of error messages:
- Syntax-checking error messages
- These messages are output when the compiler is checking your COBOL program for syntax and consistency. For a complete list,
see
Syntax Checking Error Messages.
- Code generation error messages
- Code Generation messages are output when the compiler is producing generated code. For a complete list, see
Code Generation Error Messages.
- COBOL preprocessor error messages
- These messages are output by preprocessors called within the COBOL code being compiled. For a complete list, see
COBOL Preprocessor Error Messages.
Compiler directives
Some compiler directives and directive combinations can result in a failure. Check the directives you have set to be sure
that they:
- Are syntactically correct
- Do not conflict with one another
- Have all dependencies specified properly
For details, see the documentation for each compiler directive in question.