COMPILE

The COMPILE option causes the compiler to stop compiling after all semantic checking of the source program if it produces a message of a specified severity during preprocessing or semantic checking.

Whether the compiler continues or not depends on the severity of the error detected, as specified by the NOCOMPILE option in the list below. The NOCOMPILE option specifies that processing stops unconditionally after semantic checking.

Read syntax diagramSkip visual syntax diagram
   .-NOCOMPILE--+-------------+-.   
   |            |    .-S-.    | |   
   |            '-(--+-W-+--)-' |   
   |                 '-E-'      |   
>>-+-COMPILE--------------------+------------------------------><

ABBREVIATIONS: C, NC

COMPILE
Generates code unless a severe error or an unrecoverable error is detected. This suboption is equivalent to NOCOMPILE(S).
NOCOMPILE
Compilation stops after semantic checking.
NOCOMPILE(W)
No code generation if a warning, an error, a severe error, or an unrecoverable error is detected.
NOCOMPILE(E)
No code generation if an error, a severe error, or an unrecoverable error is detected.
NOCOMPILE(S)
No code generation if a severe error or an unrecoverable error is detected.

If the compilation is terminated by the NOCOMPILE option, the cross-reference listing and attribute listing can be produced; the other listings that follow the source program will not be produced.