You can map PL/I group items with identical structures
to a single Java™ class when
you generate the XOM.
About this task
By default, when you map PL/I group items to Java classes, they are mapped to different classes.
If the PL/I structure of some group items is identical, you can map
these group items to the same Java class.
Two PL/I structures are considered identical if they have the same
children and the same memory layout.
In the following example,
the Borrower and CoBorrower group items have the same children and
memory layout.
dcl 01 Loan,
02 Borrower,
05 name char(5),
05 age fixed bin(31),
02 CoBorrower,
05 name char(5),
05 age fixed bin(31);
The following restrictions apply:
- The PL/I top-level item cannot reference another top-level item
even if they have identical PL/I structures.
- If a PL/I group item contains an array and the array reference
item (or inherited object) is not under the same group item, then
the two PL/I group items cannot be mapped to the same Java class.