Data Definition Language (DDL) Reference Manual
DDL Compiler Commands
Data Definition Language (DDL) Reference Manual—529431-004
9-10
C
When generating C source code, the DDL compiler ignores these clauses:
•
DISPLAY
•
HEADING
•
HELP
•
INDEXED BY
•
MUST BE
•
NULL
•
OCCURS DEPENDING ON
•
TACL
•
UPSHIFT
•
USAGE IS INDEX
•
88 condition-name
In some cases, the DDL compiler ignores the NOVALUES clause. (For more
information, see VALUES on page 9-115.)
In Example 9-3 on page 9-10, the DDL compiler retrieves the record CUSTOMER and
the objects that the record refers to, directly and indirectly, from the open dictionary.
Then the DDL compiler translates the record and the referenced objects to C source
code and appends the source code to the open C file, $DATA.SALES.CSRC. For the
definition of the CUSTOMER record and the objects it refers to, see Appendix B,
Sample Schemas.
Example 9-3. C Command (page1of2)
DDL Input
27> DDL
!?DICT
!?C $data.sales.csrc
!OUTPUT CONSTANT custnum-heading.
!OUTPUT DEF custnum zip-cd name addr custinfo.
!OUTPUT RECORD customer.
!EXIT