Data Definition Language (DDL) Reference Manual
DDL Compiler Commands
Data Definition Language (DDL) Reference Manual—529431-004
9-117
WARNINGS
The specified maximum number of warnings applies only to warnings that occur after
the appearance of the WARNINGS command. For example, if two warnings occur
before a WARNINGS 5 command appears, the seventh warning to occur (the fifth
warning after the command appeared) stops compilation.
If the NOWARN command is in effect, you cannot use the WARNINGS command.
The WARNINGS command does not count the number of occurrences of conditions
that result in a warning, but instead counts the number of messages issued that begin
with *** WARNING ***. Some warning conditions can generate more than one such
message. For example:
*** WARNING *** COBOL OUTPUT DIAGNOSTICS:
*** WARNING *** Unsupported data type in element A
*** WARNING *** Unsupported data type in element B
If WARNINGS 3 was specified, compilation stops after this condition occurs.
This WARNINGS command directs the DDL compiler to stop compiling when it
encounters the third compilation warning:
?WARNINGS 3
If a third compilation warning is encountered, the DDL compiler issues the warning
message for the third warning, followed by the fatal error message:
Too Many Warnings - Compilation Terminating.
Example 9-63. WARNINGS Command
?SECTION start
...
?SECTION rest-of-schema
Compile regardless of warnings
?WARNINGS 1
...
Stop compiling if any warning is encountered