DDL Compiler Commands
Data Definition Language (DDL) Reference Manual — 426798-002
9- 86
PASCAL Command
°
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 DDL generates for Pascal source code, see
Table C-4
on
page C-8.
•
The DDL compiler performs all of the syntax checks listed under the
PASCALCHECK command before writing the Pascal source output. If DDL 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, DDL ignores the following clauses:
PASCAL Command Example
In the following example, the DDL compiler retrieves the record CUSTOMER from the
open dictionary, translates it into 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
.
39> DDL
!?DICT
!?Pascal $data.sales.passrc
!OUTPUT RECORD customer.
!EXIT
The record CUSTOMER is stored in the Pascal source file PASSRC as follows:
?Section CUSTOMER
{ Definition for CUSTOMER Record }
{ Contains customer information for each customer }
TYPE CUSTOMER_DEF = RECORD
{FILE IS "$data.sales.customer" KEY-SEQUENCED.}
CUSTNUM : CUSTNUM_DEF;
CUSTNAME : NAME_DEF;
ADDR : ADDR_DEF;
END;
CONST CUSTOMER_CUSTNUM_KEY = 0;
DISPLAY
TACL
HEADING
UPSHIFT
HELP
VALUE
MUST BE
66 RENAMES
NULL
88 condition-name
OCCURS DEPENDING ON
Содержание DDL D40
Страница 36: ...Introduction to DDL Data Definition Language DDL Reference Manual 426798 002 1 14 Examining a Dictionary ...
Страница 66: ...Named Constants Data Definition Language DDL Reference Manual 426798 002 4 10 Standard SPI Constants ...
Страница 230: ...Dictionary Manipulation Statements Data Definition Language DDL Reference Manual 426798 002 8 14 SHOW USE OF Statement ...
Страница 370: ...Dictionary Maintenance Data Definition Language DDL Reference Manual 426798 002 10 24 Converting a Dictionary ...
Страница 456: ...Sample Schemas Data Definition Language DDL Reference Manual 426798 002 B 12 ASSNDDL Statements ...
Страница 470: ...DDL Data Translation Data Definition Language DDL Reference Manual 426798 002 C 14 ...
Страница 528: ...Dictionary Reports Data Definition Language DDL Reference Manual 426798 002 E 8 Requesting Reports ...
Страница 552: ...DDL Alignment Rules Data Definition Language DDL Reference Manual 426798 002 H 4 FIELDALIGN_SHARED8 Alignment Rules ...
Страница 576: ...Index Data Definition Language DDL Reference Manual 426798 002 Index 22 Special Characters ...