DFSORT Summing recordsDFSORT OMIT: Allowable comparisons DFSORT SUM statement
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.
- binary (BI)
- fixed-point (FI)
- packed decimal (PD)
- zoned decimal (ZD)
- 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