I Have to generate the month end-output file with the respective counts.Suppose I sell 20 AA1 PLANS /DAY(assuming 30 days) so in the month end i sould have a count saying 600 and the corresponding amount .Similarly for the other plans.
Is there a syncsort step to do this .JCL,please.

I Have to generate the month end-output file with the respective counts.Suppose I sell 20 AA1 PLANS /DAY(assuming 30 days) so in the month end i sould have a count saying 600 and the corresponding amount .Similarly for the other plans.

I thin this can be done using the SUM feature of sort. You can sort on the Plans field and sum on the amount fields. I do not have a sample control card, just get hold of some sort tutorial, you should get it.