Sort, Reformat and Summarize Records

Input File 1 
Smith    100
Jones     50
Alexander  1
Alexander  3
Smith     39
James    890
Sort Control Cards
 RECORD TYPE=F,LENGTH=80
 OMIT COND=(1,9,CH,EQ,'James    ')
 SORT FIELDS=(1,9,CH,A)
 SUM FIELDS=(10,3,ZD)
 END
Output File
Alexander  4
Jones     50
Smith    139
Back to Examples