Data Definition Language (DDL) Reference Manual

DDL Compiler Commands
Data Definition Language (DDL) Reference Manual529431-004
9-13
CCHECK
You can stop C syntax checking by specifying NOCCHECK; you can restart checking
with a subsequent CCHECK.
The DDL compiler does not perform the lengthy testing performed by the C compiler.
The DDL compiler tests the DDL statements to ensure that they follow the rules
specified by C:
A name cannot be longer than 31 ASCII characters. A name might become longer
because the DDL compiler appends _def to the name of a definition or record.
C reserved words cannot be DDL names.
If you compile DDL data structures for C, you must maintain word alignment
throughout. Be sure that all members of a structure containing character or filler items
have an even number of characters, and that a substructure within a structure starts on
a word boundary. Odd-length character fields must be followed by fields that are
naturally word aligned. If you use the C_MATCH_HISTORIC_TAL or
CFIELDALIGN_MATCHED2 command, these restrictions change. For more
information, see CFIELDALIGN_MATCHED2 on page 9-14.
When CCHECK is in effect, the DDL compiler issues this message for each DDL
object that passes the syntax check:
C CHECK completed for name
In the message, name is the name of the object checked by CCHECK.
Example 9-4. CCHECK Command
?CCHECK
DEFINITION orderinfo.
02 ordernum PIC 9(3)
HEADING ordernum-heading.
02 orderdate TYPE mdy-date.
02 deldate TYPE mdy-date.
02 salesperson TYPE empnum
HEADING salesperson-
heading.
02 custnum TYPE *.
END
Definition ORDERINFO size is 23 bytes.
Definition ORDERINFO added to dictionary.
***WARNING*** C OUTPUT DIAGNOSTICS:
***ERROR***Structure alignment in C is incompatible with
DDL orderdate
?NOCCHECK