Rational Developer for System z

Generalization (standard relationships)

This topic shows examples of refined generalization relationships or standard relationships.
The COBOL data structure contains several groups, one for the attributes contained by the class that drives the generation and one for each of its ancestors.
Figure 1. COBOL data structure
A COBOL program named SERVICE has the following data objects: PARENT, CHILD, and GRANDCHILD.

Figure 2 shows standard relationships as parent-child.

Figure 2. Standard relationships
01 GRANDCHILD .
   05 PARENT .
      10 ATTR1 PIC X(32).
      10 ATTR2 PIC X(32).
   05 CHILD .
      10 ATTR5 PIC X(32).
      10 ATTR6 PIC X(32).
   05 GRANDCHILD .
      10 ATTR7 PIC X(32).

Feedback