Remapping a COBOL structure to a Java class type

By default, if COBOL group items have an identical structure, they are mapped to the same Java™ class. You can remap the group item to another Java class type or a new class type.

About this task

Note: 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. For more information, see Identical COBOL structures.

You remap a COBOL group item either to another Java class type or a new Java class type during the XOM generation process, when the XOM generation wizard displays the Configure COBOL XOM Mapping page.

Procedure

  1. In the COBOL Structure pane on the Configure COBOL XOM Mapping page, select a parent group item of the COBOL group item that you want to remap.
    In the following example, if you want to remap COBORROWER to a different class, you must select LOAN in the COBOL Structure pane.
    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  ........
    
  2. Click the Java class type that you want to remap in the Java type column in the XOM Mapping pane:
    • Select New Class to remap the COBOL group item to a new Java class type.
    • Select a Java class type in the drop-down list to remap the COBOL group item to another Java class type.
  3. Click Finish when you are ready to generate the XOM.