The GT.M compiler detects and reports syntax errors at the following times:
Compile-time - while producing the object module from a source file
Run-time - while compiling code for M indirection and XECUTEs
Run-time - when the user is working in Direct Mode.
The compile-time error message format displays the line containing the error and the location of the error on the line. The error message also indicates what was incorrect about the M statement.
GT.M can not detect certain types of errors associated with indirection, the functioning of I/O devices, and program logic until run-time.
The compile-as-written feature allows compilation to continue and produces an object module despite errors in the code. This permits testing of other pathways through the code. The errors are reported at run-time, when GT.M encounters them in the execution path.
The GT.M run-time system recognizes execution errors and reports them when they occur. It also reports errors flagged by the compiler when they occur in the execution path.
For more information, refer to the "Error Processing" chapter in this manual.