Data Definition Language (DDL) Reference Manual
DDL Compiler Commands
Data Definition Language (DDL) Reference Manual—529431-004
9-88
PASCAL (D-Series Systems Only)
The DDL compiler replaces any field reference dot character (.) in a primary or
alternate-key name by an underscore before writing the name to the Pascal source
code file.
Before writing a name to a Pascal source code file, the DDL compiler:
•
Appends _DEF to every group definition name and record name (but not to any
field definition name)
•
Appends _KEY to every primary-key name and alternate-key name
As a result, the maximum length for the name of a DDL group definition, record, or key
that is to be written to Pascal is 27 ASCII characters, not the standard DDL name
length of 30 characters.
For the data types that the DDL compiler generates for Pascal source code, see
Table C-4 on page C-7.
The DDL compiler performs all of the syntax checks listed under the PASCALCHECK
command before writing the Pascal source output. If the DDL compiler finds a syntax
error, it does not write the source output for the object with the error; it does write
source output for an object if only a warning is issued.
When generating Pascal source code, the DDL compiler ignores these clauses:
•
DISPLAY
•
HEADING
•
HELP
•
MUST BE
•
NULL
•
OCCURS DEPENDING ON
•
TACL
•
UPSHIFT
•
VALUE
•
66 RENAMES
•
88 condition-name
In Example 9-43 on page 9-88, the DDL compiler retrieves the record CUSTOMER
from the open dictionary, translates it to Pascal source code, and appends the source
code to the open Pascal file. For the DDL definition of the CUSTOMER record, see the
sample database schema in Appendix B, Sample Schemas.
Example 9-43. PASCAL Command
DDL Input
39> DDL
!?DICT
!?Pascal $data.sales.passrc
!OUTPUT RECORD customer.
!EXIT