If the UPON phrase is omitted, any identifiers in the associated SUM clause which are themselves sum counters must be defined either in the same report group that contains this SUM clause or in a report group which is at a lower level in the control hierarchy of this report.
If the UPON phrase is specified, any identifiers in the associated SUM clause must not be sum counters.
FINAL, if specified in the RESET phrase, must also appear in the CONTROL clause for this report.
This rule is not enforced.
Crossfooting occurs when a control break takes place and at the time the CONTROL FOOTING report group is processed.
Crossfooting is performed according to the sequence in which sum counters are defined in the CONTROL FOOTING report group. That is, all crossfooting into the first sum counter defined in the CONTROL FOOTING report group is completed, and then all crossfooting into the second sum counter defined in the CONTROL FOOTING report group is completed.
When one of the addends is the sum counter defined by the data description entry in which that SUM clause appears, the initial value of that sum counter at the time of summation is used in the summing operation.
Sum counters are initially set to zero by the report writer control system during the execution of the INITIATE statement for the report containing the sum counter.