DDL Data Translation
Data Definition Language (DDL) Reference Manual — 426798-002
C- 4
..
Table C-2. Sample DDL/COBOL Data Translation Table (page 1 of 2)
Clause Type
DDL Clause Specification
COBOL85 Data Type
DDL PICTURE clause
PIC A(10)
PIC A(10)
PIC 9(10)
PIC 9(10)
PIC X(10)
PIC X(10)
PIC N(10)
PIC N(10)
PIC A(2)X(10)9(3)
PIC A(2)X(10)9(3)
PIC SV9(3)
PIC SV9(3) SIGN LEADING
SEPARATE
PIC 9V9(2)S
PIC S9V9(2) SIGN TRAILING
SEPARATE
PIC T9V9
PIC S99V9 SIGN LEADING
PIC 99T
PIC S9(2)9 SIGN TRAILING
PIC 9(4) COMP
PIC 9(4) COMP
PIC S9(4) COMP
PIC S9(4) COMP
PIC 9(5) COMP
PIC 9(5) COMP
PIC S9(5) COMP
PIC S9(5) COMP
PIC S9(10) COMP
PIC S9(10) COMP
PIC 9999V99
OCCURS 52 TIMES
PIC 9999V99
Occurs 52 TIMES
PIC 9
OCCURS 0 TO 10 TIMES
DEPENDING ON
item
PIC 9
Occurs 0 TO 10 TIMES
DEPENDING ON
item
DDL TYPE clause
TYPE CHARACTER 8
PIC X(8)
TYPE BINARY 8
PIC X(1)
FILLER PIC X(1) (added by
DDL)
TYPE BINARY [16]
NATIVE-2
TYPE BINARY [16] UNSIGNED
NATIVE-2
TYPE BINARY 16,2
PIC S9(2)V9(2) COMP
TYPE BINARY 32
NATIVE-4
TYPE BINARY 32 UNSIGNED
NATIVE-4
TYPE BINARY 64
NATIVE-8
TYPE BINARY 64,-16
PIC S9(2)P(16) COMP
* TYPE BIT
len
NATIVE-2
DDL TYPE clause
(continued)
TYPE FLOAT [32]
PIC X(4)
TYPE FLOAT 64
PIC X(8)