Data Definition Language (DDL) Reference Manual (G06.24+)

DDL Compiler Commands
Data Definition Language (DDL) Reference Manual426798-002
9-8
C Command
Write the C source statements to the C source file.
C
opens the specified C source file, translates all subsequent DDL objects defined by
statements or specified in OUTPUT statements into C source statements, and
writes the source statements to the open C source file. If a C source file is already
open, this command closes the current file and opens a new source file.
c-source-file
identifies the C source file. If c-source-file is omitted, DDL lists the C source
statements at the home terminal.
!
purges the contents of any existing C source file before opening the file. If the
specified file does not exist, DDL ignores the exclamation point.
NOC
closes the currently open C source file and stops translating subsequent DDL
objects. NOC is the default.
C Command Guidelines
The following points are guidelines for using the C command:
The specified C source file must be an EDIT file, an unstructured file, or a
sequential device such as a terminal, a spooler, or a process. If the file exists but is
not one of these types, DDL issues an error message and does not open the file.
Only one C source file can be open at a time. If you use the C command when you
already have a C source file open, DDL closes the current source file before
opening the new source file.
If the C source file already exists and the exclamation point is omitted, DDL
appends the DDL objects to the end of the file’s original contents. DDL does not
replace any existing objects.
The compiler can translate DDL objects specified in an OUTPUT statement only if
the dictionary containing these objects is open.
Each DDL object translated into C source code is written to the C source file in a
separate section that has the same name as the DDL object it contains. To
suppress the generation of individual section headings with the SETSECTION
command.
{ C [ c-source-file [ ! ] ] | NOC }