Data Definition Language (DDL) Reference Manual
DDL Compiler Commands
Data Definition Language (DDL) Reference Manual—529431-004
9-23
COBCHECK
COBCHECK
The [NO]COBCHECK command performs [suppresses] COBOL syntax checks on
subsequent DDL object definitions without generating code.
Default: COBCHECK if a COBOL source code file is open, otherwise NOCOBCHECK
COBCHECK
performs COBOL syntax checks as though COBOL source code were being
produced.
NOCOBCHECK
suppresses COBOL syntax checks.
If a COBOL source code file is open, the compiler performs the COBOL checks
whether or not COBCHECK is set.
You can stop COBOL syntax checking by specifying a NOCOBCHECK command; you
can restart checking with a subsequent COBCHECK.
The DDL compiler does not perform the lengthy syntax testing performed by the
COBOL compiler. The DDL compiler tests the DDL statements to ensure that they
follow the rules specified by COBOL:
•
The number of alphabetic characters in the PICTURE literal cannot exceed 30
ASCII characters.
•
The maximum numeric PICTURE size is 18 words.
•
An elementary or group field with either an OCCURS or OCCURS DEPENDING
ON clause cannot be redefined by another field or group.
•
An elementary or group field with a REDEFINES clause cannot be larger than the
field or group it redefines.
•
COBOL reserved words cannot be used as DDL names.
•
The object does not contain any of these unsupported types:
°
TYPE BINARY 8
°
TYPE FLOAT
°
TYPE COMPLEX
°
TYPE LOGICAL
•
A TYPE BINARY 64 declaration cannot specify a scale factor of -18 (or less); the
range is restricted to -17 through 18.
•
A data item must not have the same name as a group or record that can be used
to qualify the data item.
[NO]COBCHECK