DDL Compiler Commands
Data Definition Language (DDL) Reference Manual — 426798-002
9- 55
ERRORS Command
•
If ERRORS is specified but
max-errors
is omitted, DDL stops compilation after
the first error; thus, ERRORS is the same as ERRORS 1.
•
When compilation terminates because the specified number of errors is reached,
DDL closes an open dictionary and any open files, issues session statistics, and
terminates.
•
The specified maximum number of errors applies only to errors that occur after the
appearance of the ERRORS command. For example, if two errors had occurred
before an ?ERRORS 3 command appeared, the fifth error to occur (the third error
after the command appeared) would halt compilation.
ERRORS Command Examples
The following ERRORS command directs the DDL compiler to stop compiling when it
encounters the third compilation error.
?ERRORS 3
If a third compilation error is encountered, DDL issues the error message for the third
error followed by the fatal error message:
Too Many Errors - Compilation Terminating.
In the following example, the absence of an ERRORS command allows compilation to
continue in a section of the schema regardless of errors; an ERRORS 1 command in a
following section stops compilation at the first subsequent error:
?SECTION start
.
.
.
?SECTION rest-of-schema
?ERRORS 1
.
.
.
Compile regardless of errors
Stop compiling source if any error is
encountered
VST915.vsd