Data Definition Language (DDL) Reference Manual
DDL Compiler Commands
Data Definition Language (DDL) Reference Manual—529431-004
9-8
C
C
The [NO]C command:
•
Opens [closes] a C source code file
•
Starts [stops] writing translated DDL object definitions to the C source code file
Default: NOC
C
closes any open C source code file, opens c-source-file, translates 
subsequent DDL objects defined by statements or specified in OUTPUT 
statements to C source code statements, and writes the C source code statements 
to c-source-file.
c-source-file
is the name of the C source code file to be created, if necessary, and opened. The 
file must be one of:
•
EDIT file
•
Unstructured file
•
Sequential device (such as a terminal, spooler, or process)
If the file exists but is not one of these types, the DDL compiler issues an error 
message and does not open the file.
If c-source-file is an EDIT file, and it exceeds 99,999 lines, the DDL compiler 
issues FILE ERROR - 
filename - Edit file line number too large (537) on 
page A-18.
Example 9-2. NOANSICOBOL Command
DDL Input
?NOANSICOBOL
?COBOL COBSCR1
?OUTPUT DEF name.
DDL Output (COBOL Code)
* SCHEMA PRODUCED DATE - TIME : 9/14/2004 - 18:07:27
?SECTION NAME,TANDEM
* Definition NAME created on 09/14/2004 at 18:07
 01 NAME.
 02 LAST-NAME PIC X(12).
 02 FIRST-NAME PIC X(8).
 02 MIDINIT PIC X(2).
{ C [ c-source-file [ ! ] ] }
{ NOC }










