DFSORT Summing records

DFSORT OMIT: Allowable comparisons DFSORT SUM statement

Advertisements


The SUM control statement used to specify one or more numeric fields that are tobe summed whenever records have equally ordering control fields.

The control fieldsare specified on the SORT statement.

The data formats allowed to specify on theSUM statement are below.


  1. binary (BI)
  2. fixed-point (FI)
  3. packed decimal (PD)
  4. zoned decimal (ZD)
  5. floating-point (FL)

Only control fields are allowed while using the summary fields.

The groups of same control field contents of the summary fields are summed.

The groups of same control field are often called "duplicate" records.



DFSORT OMIT: Allowable comparisons DFSORT SUM statement

Advertisements