Mapping COBOL fixed-length tables to the List type
By default, a COBOL fixed-length table maps to the Java™ array type. You can change the default mapping of fixed-length tables from Array to List.
About this task
- The COBOL fixed-length table must reference a numeric item with an integer value: short, int, long, or BigDecimal.
- The COBOL fixed-length table must reference the numeric item under the same top-level item.
- If there is an embedded table, it must reference the numeric item under the same table group.
- If there is a table with an identical reference structure, the table must reference the numeric item under the identical group.
You can map the COBOL fixed-length table to the List type when the XOM generation wizard displays the Configure COBOL XOM Mapping page. The page shows the default COBOL to Java type mappings.
Procedure
- On the Configure COBOL XOM Mapping page, click a data item that you want to configure in the COBOL Structure pane.
- In the Java Type column in the XOM Mapping pane, select the array item and change it from the Array type to the List type. The Customized List Reference window is displayed.
- From the list of numeric types in the sharing scope, select a reference counter of the array.
- Click OK, and then click Finish when you are ready to generate the XOM.