Page History
...
For example, consider the following instance where a "departmental expenditure" file called EXPEND is read:
| Panel |
|---|
| No Format |
FILE: "EXPEND" Company Department Amount Number Number Spent #COMPNO #DEPNO #AMOUNT
etc, etc ....... |
To produce a summary of expenditure by company, we could first define a "working list" called #SUMMARY as follows:
...
DEFINE FIELD(#SUMCOMPNO)
...
REFFLD(#COMPNO)
...
DEFINE FIELD(#SUMAMOUNT)
...
REFFLD(#AMOUNT)
...
DEF_LIST NAME(#SUMMARY)
...
FIELDS(#SUMCOMPNO #SUMAMOUNT)
...
TYPE(*WORKING)
...
NBR_ENTRYS(50)
...
This working list can be "visualized" as a multiple occurrence structure (or array):
...