Introduction to DDL
Data Definition Language (DDL) Reference Manual — 426798-002
1 -9
Generating Source Code
Consideration for TNS and TNS/R Native Compilers
The native compilers align data for optimal performance on TNS/R systems by default.
This default alignment is different and incompatible with the default alignment
generated by the TNS compilers.
Because of this data alignment incompatibility, the D40 DDL compiler was enhanced to
generate source code that produces the same data alignment, regardless of whether
the TNS compilers or native compilers are used. To ensure the same data alignment,
the D40 DDL compiler emits
fieldalign shared2
pragmas for C and FIELDALIGN
SHARED2 directives for TAL and pTAL.
Figure 1-4. Generating Source Code
15> DDL / IN schema
/
1
Generate source code
(entire schema)
16> DDL DICT
!?COBOL cobfile
!OUTPUT RECORD rec1 rec2.
!OUTPUT DEF def1 def2.
!EXIT
2
Generate source code (selected
records and definitions)
DDL
DDL
Source
Schema
COBOL
Source
Code
Dictionary
Dictionary
COBOL
Source
Code
? DICT
? COBOL
cobfile
DEF . . .
.
.
.
RECORD . . .
VST004.vsd
Содержание 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 ...