Data Definition Language (DDL) Reference Manual
Data Definition Language (DDL) Reference Manual—529431-004
C-1
C DDL Data Translation
This appendix explains how data defined in DDL is translated to each of the seven 
supported host languages.
The DDL compiler can translate any definition or record to data-declaration source 
code for host languages [C, COBOL, FORTRAN, Pascal (on D-series systems), TACL, 
TAL, and pTAL]. The only restriction on translation is that not all data types are 
supported in all languages, as indicated by the following:
•
Whenever a declared data type is not supported in a particular language, the DDL 
compiler attempts to translate the data type to a declaration with a compatible data 
type. For example, DDL structures described with PICTURE X or PICTURE 9 
clauses are translated to CHARACTER data type in FORTRAN or STRING BYTE 
data type in pTAL or TAL; a structure described as PICTURE S9(4) COMP is 
translated to an INT data type in pTAL, TAL, or TACL, or a NATIVE-2 data type in 
COBOL; a DDL TYPE BINARY 64 data type is translated to a long long data 
type in C or an INT64 data type in Pascal.
•
When no compatible data type is available, the DDL compiler translates the data 
type to a character-string declaration. For example, a structure described as TYPE 
FLOAT, which is the REAL data type used by FORTRAN, pTAL or TAL, is 
translated to a PICTURE X(4) data type in COBOL.
These tables summarize how the DDL compiler translates its definitions to each host 
language:
•
Table C-1, Sample DDL/C Data Translation Table, on page C-1
•
Table C-2, Sample DDL/COBOL Data Translation Table, on page C-3
•
Table C-3, Sample DDL/FORTRAN Data Translation Table, on page C-5
•
Table C-4, Sample DDL/Pascal Data Translation Table, on page C-7
•
Table C-5, Sample DDL/TACL Data Translation Table, on page C-9
•
Table C-6, Sample DDL/pTAL and TAL Data Translation Table, on page C-11
Note. For information about how DDL translates SQL data types, see the SQL/MP Reference 
Manual and the SQL/MX Reference Manual.
Table C-1. Sample DDL/C Data Translation Table (page 1 of 3)
DDL Clause Type DDL Clause Specification C Data Type
PICTURE PIC A(10) char [10]
PIC 9(10) char [10]
PIC X(10) char [10]
* Field definition does not have bit length generated.
** H06.03 and later RVUs










