Howdy ya'll!
I have an FB file which I'm sorting on cols 29-32.
I'm summing cols: 33-38, 39-44, 45-50.
I want output records to contain: sort value, each of 3 summed fields.
I'm able to do that with below:
//SYSIN DD *
SORT FIELDS=(29,4,PD,A)
SUM FIELDS=(33,6,39,6,45,6),FORMAT=PD
OUTREC FIELDS=(29,4,PD,
33,6,PD,
39,6,PD,
45,6,PD)
END
My question: How can I include a COUNT of the # of records that are included in the summing as the 5th column in my output record?
TIA!