Group items and data items in PL/I
Group items in a PL/I include file map to Java™ classes. Data items map to different Java structures, depending on the level of the data item and the level at which they are defined.
For example, top-level PL/I data items are handled differently to lower-level data items, depending on the level at which they are defined in the include file.
Group items
Each group item in the PL/I include file maps to a Java class in the XOM. If the group item has a parent in the PL/I include file, an attribute is added into the parent XOM class. For example, you might have the following group items:
dcl 01 Parent,
05 Child,
10 name char(20);
These group items map to the following Java XOM entries:
Two classes,
ParentandChild, are generated.The
Parentclass has one attribute namedChild, of typeChild.
Data items
Data items that have a parent
in a PL/I include file are mapped to an attribute in the parent Java class in the XOM. For example,
you might have a data item named Child:
dcl 01 Parent,
05 Child char(20);
These data items map to the following Java XOM entries:
One class, Parent, is created for the group item.
The data item maps to the
Childattribute, which is added to theParentclass with an attribute type ofjava.lang.String.