Common compilation errors
The types of errors that are detected at compile time include syntax errors, references to variables and labels not defined, and missing statements.
In the CL compiler listing, an error condition that relates directly to a specific command is listed after that command. Messages that do not relate to a specific command but are more general in nature are listed in a messages section of the listing, not inline with source statements.
The following types of errors stop the program or module from being created (severity codes are ignored):
- Value errors
- Syntax errors
- Errors related to dependencies between parameters within a command
- Errors detected during validity checking
Even after an error that stops the program or procedure from being created is encountered, the compiler continues to check the source for errors. This lets you see and correct as many errors as possible before you try to create the module or program again.