Data Definition Language (DDL) Reference Manual
Definition Attributes
Data Definition Language (DDL) Reference Manual—529431-004
6-59
Specifying TYPE data-type
Bit Maps for COBOL
The output for a bit map declared as a field definition is NATIVE-2. the DDL compiler 
ignores bit-length.
The output for a bit map declared in a group structure is FILLER. Both named bit fields 
and filler bit fields have the same number of words as the bit map.
For a list of COBOL data types that the TYPE data-type clause generates, see 
Table C-2, Sample DDL/COBOL Data Translation Table, on page C-3.
DEF Bits-With-Enums.
 02 Bit-Field-1 TYPE BIT 8
 ENUM Enum-Spec.
 02 Bit-Field-2 TYPE BIT 4.
 End.
typedef short enum_spec_def;
#pragma fieldalign shared2 
__bits_with_enums
typedef struct __bits_with_enums
 {
 short bit_field_1:8;
 short bit_field_2:4;
 } bits_with_enums_def;
DEF Reused-Bits.
 02 Data-Item Type Binary.
 02 Bits-Layout-1
 Redefines Data-Item.
 03 F-11 TYPE BIT 5.
 03 F-12 TYPE BIT 6.
 03 F-13 TYPE BIT 4.
 02 Bits-Layout-2
 Redefines Data-Item.
 03 F-21 TYPE BIT 4.
 03 F-22 TYPE BIT 3.
 End.
#pragma fieldalign shared2 __reused_bits
typedef struct __reused_bits
 {
 union
 {
 short data_item;
 struct
 {
 short f_11:5;
 short f_12:6;
 short f_13:4;
 } bits_layout_1;
 struct
 {
 short f_21:4;
 short f_22:3;
 } bits_layout_2;
 } u_data_item;
 } reused_bits_def;
Example 6-48. Bit Field Output for C (page 2 of 2)
DDL Type C Type










