Here is my code.
//SYSIN DD *
****************=(7,1,CH,A)
SORT FIELDS=(1,7,CH,A)
SUM FIELDS=(8,5,ZD)
****************=(7,1,CH,A)
SORT FIELDS=(1,7,CH,A)
SUM FIELDS=(8,5,ZD)
Here is my data file
111111122222
122222233333
133333344444
144444455555
155555566666
166666677777
177777788888
188888899999
111111110000
122222220000
133333330000
144444440000
155555550000
166666660000
177777770000
122222233333
133333344444
144444455555
155555566666
166666677777
177777788888
188888899999
111111110000
122222220000
133333330000
144444440000
155555550000
166666660000
177777770000
Here is the output
111111132222
122222253333
133333374444
144444495555
155555550000
155555566666
166666660000
166666677777
177777770000
177777788888
188888899999
122222253333
133333374444
144444495555
155555550000
155555566666
166666660000
166666677777
177777770000
177777788888
188888899999