what is xsum in sort?
XSUM-SUM: Remove duplicate records using SORT. ... The SUM control statement specifies that, whenever two records are found with equal sort or merge control fields, the contents of their summary fields are to be added, the sum is to be placed in one of the records, and the other record is to be deleted.