Data Definition Language (DDL) Reference Manual

DDL Compiler Commands
Data Definition Language (DDL) Reference Manual529431-004
9-55
ERRORS
ERRORS
The ERRORS command specifies the number of errors allowed before compilation
stops.
Default: Compilation continues until the end of the source code file regardless of the
number of errors
max-errors
is a number from 1 through 32,767 that specifies the maximum number of
compilation errors allowed before the DDL compiler stops compiling the source
code file.
Default: 1
When compilation stops because the specified number of errors is reached, the DDL
compiler closes the open dictionary and any open files, issues session statistics, and
stops.
The specified maximum number of errors applies only to errors that occur after the
appearance of the ERRORS command. For example, if two errors occur before an
ERRORS 3 command appears, the fifth error to occur (the third error after the
command appeared) stops compilation.
This command directs the DDL compiler to stop compiling when it encounters the third
compilation error.
?ERRORS 3
If the DDL compiler encounters a third compilation error, the DDL compiler issues the
error message for the third error followed by the fatal error message:
Too Many Errors - Compilation Terminating.
* EXIT
Stop the EDIT process.
!EXIT
Exit DDL.
ERRORS [ max-errors ]
Example 9-24. ERRORS Command
?SECTION start
...
Compile regardless of errors
?SECTION rest-of-schema
?ERRORS 1
...
Stop compiling source if any error is encountered
Example 9-23. EDIT Command (page 2 of 2)