Control Data Corporation 3300 Reference Manual page 178

Computer systems usasi cobol/ master
Table of Contents

Advertisement

60229400
The SUM clause indicates values to be accumulated when a control break
occurs at object time. It may appear only in a control footing or a detail
report group at the elementary level. Any item containing a SUM clause
generates a numeric counter used for summing the operands specified by
the identifiers following the word SUM. This summation counter can be
referenced by specifying the data name of the item containing the SUM clause.
If
a summation counter is never referenced, a data name need not be included
in the entry containing SUM. A PICTURE clause must always be included in
an entry containing a SUM clause. Editing characters or editing clauses may
be included but editing occurs only upon presentation of the summation counter
in the report. At all other times the summation counter is treated as anum-
eric data item. The PICTURE must specify a size large enough to accommo-
date the summed quantity without truncation of integral digits.
Each item being summed (identifier-3, identifier-4, etc.) must appear as the
object of a SOURCE clause in a detail report group, name an entry containing
a SUM clause in a control footing report group at an equal or lower position
in the control hierarchy, or name an entry containing a SUM clause in a detail
report group of the lowest level of the control hierarchy. The items being
summed must be explicitly included in a detail report group, but they may be
suppressed at presentation time.
The summation of data items defined as summation counters in control footing
or detail report groups is accomplished explicitly or implicitly by the Report
Writer. A summation counter is algebraically incremented just before the
detail report group which contains the data items being summed is presented.
The items being summed (identifier-3, identifier-4, etc.) are added to the
summation counter at each execution of a GENERATE statement. This
statement generates a detail report group that contains the SUM operands
at the elementary level. Summing is done according to the rules for ADD
in the Procedure Division (section 4.7.2) .
5-21

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 3300 and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

3500

Table of Contents