Data Definition Language (DDL) Reference Manual

Data Definition Language (DDL) Reference Manual529431-004
3-1
3 Running the DDL Compiler
You run the DDL compiler by using the RUN DDL command. You can run the DDL
compiler either interactively, entering commands and source lines from the keyboard,
or noninteractively, entering an entire schema from a file.
Running the DDL compiler interactively is recommended for functions that require only
a few statements or commands, such as modifying an existing dictionary or generating
source code from a dictionary.
Because errors are difficult to correct while you enter statements interactively, entering
an entire schema interactively is not recommended. Instead, enter the schema in an
EDIT file, where you can correct mistakes as you type. When the schema is correct,
specify the name of the EDIT file either in a DDL SOURCE command or in the IN run
option of the RUN DDL command.
When the DDL compiler stops its operation, it returns a completion code to the
command interpreter that indicates the outcome of the DDL compilation. The
completion code is accessible in the TACL variable _COMPLETION.
Topics:
RUN DDL Command on page 3-1
Running the DDL Compiler Noninteractively on page 3-3
Running the DDL Compiler Interactively on page 3-4
Completion Codes on page 3-5
RUN DDL Command
The RUN DDL command, an implied TACL RUN command, runs the DDL compiler.
run-option
is any RUN option described in the TACL Reference Manual. The RUN options of
most importance to the DDL compiler are:
IN ddl-source-file
specifies the name of a file that contains DDL statements and commands.
If you specify this option, see Running the DDL Compiler Noninteractively
on
page 3-3.
If you omit this option, see Running the DDL Compiler Interactively on
page 3-4.
[RUN] DDL [ / run-option [ , run-option ]... / ]
[ compiler-command [ , compiler-command ]... ]