I have requirement that how to get the count (no of records) sorted .
sort fields = (1,3,CH,A)
SUM FIELDS = (5,4,ZD) - It will get the summing fields
i need no of records count also
Shankar's DFSORT job will give you a count of the output records, that is, the number of records remaining after SUM removes duplicate records. Is that what you want, or do you actually want a count of the number of records sorted before SUM removes duplicate records, or do you not really need the SUM statement at all?
If you need more specific help to get what you want, show an example of your input records and what you expect for output, and give the RECFM and LRECL of your input file.