Data Definition Language (DDL) Reference Manual (G06.24+)
DDL Data Translation
Data Definition Language (DDL) Reference Manual—426798-002
C-2
Table C-1. Sample DDL/C Data Translation Table (page 1 of 2)
Clause Type DDL Clause Specification C Data Type
DDL PICTURE clause PIC A(10) char [10]
PIC 9(10) char [10]
PIC X(10) char [10]
PIC A(2)X(10)9(2)A(5) char [19]
PIC SV9(3) char [4]
PIC 9V9(2) char [4]
PIC T9V9 char [3]
PIC 9(2)T char [3]
PIC N(10) char [20]
PIC 9(4) COMP unsigned short
PIC S9(4) COMP short
PIC 9(5) COMP unsigned long
PIC S9(5) COMP long
PIC S9(10) COMP long long
PIC 9999V99
OCCURS 52 TIMES
char [52][6]
PIC 9
OCCURS 0 TO 10 TIMES
DEPENDING ON item
char [10]
DDL TYPE clause TYPE CHARACTER len char [len]
TYPE BINARY 8 signed char
TYPE BINARY 8 UNSIGNED char
TYPE BINARY [16] short
TYPE BINARY [16] UNSIGNED unsigned short
TYPE BINARY 16,2 short
TYPE BINARY 32 long
TYPE BINARY 32 UNSIGNED unsigned long
TYPE BINARY 64 long long
TYPE BINARY 64,-16 long long
*TYPE BIT len short or unsigned short
len
TYPE BIT len UNSIGNED unsigned short:len
TYPE FLOAT [32] float
DDL TYPE clause
(continued)
TYPE FLOAT 64 double