Previous Topic: Function Field UsagesNext Topic: Derived (DRV)


Count (CNT)

The CNT usage type is given to those function fields that contain a count of the number of records containing the field (to be counted) over a series of records.

A function field of usage type CNT 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 CNT field could calculate the number of times a field occurs in the detail lines of the report, to be displayed in the next total format.

Fields of type CNT must be numeric. If the function field is defined as a REF field, based on another field,CA 2E assumes that the CNT field is a count of the number of records containing the based-on field. This method of definition cannot be used if the field to be counted is not itself a numeric field.

Examples of CNT fields include: