Previous Topic: Minimum (MIN)

Next Topic: User-Defined (USR)

Summation (SUM)

The SUM usage type is given to function fields, which contain the sum of the values found for another field over a series of records.

A function field of usage type SUM has two parameters:

The series of records are defined by the standard function within which the field is defined. For instance, in a Print File function, the SUM field could calculate the sum of the values in a field from the detail lines of the report, which is to be displayed in the next total format.

Function fields of type SUM must always be numeric. If the function field is defined as a REF field, based on another numeric field,CA 2E assumes that it is the sum of the values in the based-on field that is to be calculated. This method of definition cannot be used if the field to be calculated is not itself a numeric field.

Examples of SUM fields include: