Data Definition Language (DDL) Reference Manual

Running the DDL Compiler
Data Definition Language (DDL) Reference Manual529431-004
3-3
Running the DDL Compiler Noninteractively
Run-time defaults for the DDL compiler:
If you do not fully qualify a file name with volume and subvolume names, the DDL
compiler qualifies the file name with the current default volume and subvolume
names.
The DDL compiler creates all files, including dictionary files and host-language
source code files, with your default file-creation security. To change your default
file-creation security, use the TACL DEFAULT command.
Running the DDL Compiler Noninteractively
To run the DDL compiler noninteractively, specify the run option IN ddl-source-
file in the RUN DDL Command on page 3-1.
When run noninteractively, the DDL compiler:
Accepts source input from ddl-source-file, which can contain any statements
and commands described in this manual.
Compiles the statements in ddl-source-file and writes a compiler listing to
listing-destination, which you can specify in the RUN DDL command with
the run option OUT.
Performs the actions specified by compiler commands in both the RUN DDL
command and ddl-source-file. The DDL compiler processes the commands
in the RUN command first, then processes the commands in ddl-source-file
as it encounters them.
Stops the DDL compilation process after encountering either an end-of-file mark or
an EXIT statement in ddl-source-file, and returns control to the command
interpreter.
Assuming that a dictionary exists on the current default volume and subvolume, the
command in Example 3-1
on page 3-3 directs the DDL compiler to:
Open the dictionary on the current default volume and subvolume.
Open the COBOL source code file named cobsrc.
Read statements and commands from the file ddlsrc.
Compile the object-definition statements in ddlsrc in accordance with any
commands in ddlsrc and add the compiled objects to the dictionary.
Generate COBOL source code from the schema in ddlsrc and write the COBOL
source code to cobsrc.
Write the compiler listing to the file listfile.
Example 3-1. Running the DDL Compiler Noninteractively
DDL /IN ddlsrc, OUT listfile/ DICT, COBOL cobsrc