Data Definition Language (DDL) Reference Manual

DDL Data Translation
Data Definition Language (DDL) Reference Manual529431-004
C-3
TYPE TYPE BIT len * short or unsigned short len
TYPE BIT len UNSIGNED unsigned short:len
TYPE FLOAT [32] float
TYPE FLOAT 64 double
TYPE COMPLEX double (inaccurate representation)
TYPE LOGICAL 1 char
TYPE LOGICAL[2] short
TYPE LOGICAL 4 long
TYPE ENUM enum
TYPE CHARACTER 8
OCCURS 100 TIMES
char[100][8]
TYPE BINARY 16
OCCURS 3 TIMES
short[3]
Table C-2. Sample DDL/COBOL Data Translation Table (page1of2)
DDL Clause Type DDL Clause Specification COBOL Data Type
PICTURE 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
* Groups bit fields that can fit in the same word and generates a filler in the word’s type.
Table C-1. Sample DDL/C Data Translation Table (page 3 of 3)
DDL Clause Type DDL Clause Specification C Data Type
* Field definition does not have bit length generated.
** H06.03 and later RVUs