Identical COBOL structures
COBOL group items with an identical structure are mapped to a single Java™ class when you generate the XOM.
COBOL structures are considered identical if they have the same child items and memory layout. If the COBOL structure of group items is identical, these group items are mapped to the same Java class.
01 LOAN
......
05 BORROWER.
10 NAME PIC X(20).
10 BIRTHDAY PIC X(8).
05 COBORROWER.
10 NAME PIC X(20).
10 BIRTHDAY PIC X(8).
05 ........
01 LOAN2
......
A COBOL top-level item cannot be mapped to the same Java class as another top-level item even if they have an identical structure. In the preceding example, LOAN and LOAN2 are not mapped to the same Java class, even if their structures are identical, because they are both top-level items in the copybook. LOAN2 is mapped to a new class.
On the Configure COBOL XOM Mapping page, when you select a COBOL data item, all data items that have an identical structure and map to the same Java class as the selected data item are highlighted in bold with an equal sign (=) in the COBOL Structure pane. When you select Show identical structures, only the data items with the identical structure as the selected data item are highlighted and displayed in the COBOL Structure pane.