ENABLE Reference Manual
ENABLE ATTRIBUTES
TREE Attribute
Depart-box
dept-no
dept-name
dept-loc
Level 1
Employ-box
empnum
empname
dept-num
Level 2
Link Between Boxes
S5043-028
Depends-box
depent-key
empnum
dep-no
dep-name
Level 3
Link Between Boxes
Figure 4-12. Sample Tree Structure With Three Boxes
You could generate an application with the tree structure shown
in Figure 4-12 by entering the following ENABLE commands:
ADD BOX depart-box, RECORD department
ADD BOX employ-box, RECORD employee
ADD BOX depends-box, RECORD dependents
SET APPL PATHCOMFILE p7
SET APPL TREE (02 depart-box
04 employ-box
LINK dept-no TO OPTIONAL dept-num
06 depends-box
LINK employ-box
TO OPTIONAL depends-box
VIA empnum)
ADD APPL dept-detail
GENERATE APPL dept-detail
4-92