Technical data

Figure 5–20 Finding the Stool Legs While Keeping STOOL Current of PART_
USES
COMPONENT 1
STOOL
STOOL SEAT
(CURRENT OF PART_USES)
ZK−1498−GE
(CURRENT OF
PART_USED_ON)
STOOL LEGS
5. Build a second COMPONENT record (component 4) and store it. This links
both PART_USES owner STOOL and PART_USED_ON owner STOOL LEGS
to component 4. This completes all the necessary relationships you need to
create the bill of materials shown in Figure 5–21.
500-CONNECT-COMPONENT-4.
MOVE 4 TO COMP_QUANTITY.
STORE COMPONENT.
Figure 5–21 Completed Bill of Materials
ZK−1499−GE
STOOL
COMPONENT 1
STOOL SEAT
COMPONENT 4
STOOL LEGS
(CURRENT OF PART_USES
AND PART_USED_ON)
Figure 5–22 shows the relationship between PART records and COMPONENT
records. The solid lines connect PART_USES owners to their members and the
dotted lines connect PART_USED_ON owners to their members.
5–20 Database Programming with HP COBOL