Guidelines for COBOL XOM generation
When you generate XOM from a COBOL copybook, it is important to understand how COBOL structures are handled in the XOM.
- Data structures in the COBOL copybook
A COBOL copybook to be used for generating a XOM must contain only data structures that can map to Java™ structures. - COBOL to Java mapping
When you generate a XOM from a COBOL copybook most COBOL types map to a Java type. - COPY statements in the copybook
You can base your XOM on a COBOL copybook that contains COPY statements or references other copybooks that contain COPY statements. - COBOL data item mapping to Java structures
COBOL data items map to different Java structures depending on the level of the data item and the level at which it is defined. - REDEFINES statements in the copybook
When you generate a XOM from a COBOL copybook, a REDEFINES statement generates a Java type mapping for each data item that is associated with the REDEFINES statement, but you can use only one of them in the XOM. - Table mapping between COBOL and Java
Fixed length tables map to a Java array. The default mapping for variable length tables is to a Java list.
Parent topic: Designing a BOM for a COBOL model