Hello All,
I have a requirement of getting the count of records from an input file based on a particular field value.
For example.
If in column 10 of input file there exists values as A, B, and C, I need to take the count as below:
Count of records that has value A in column 10
Count of records that has value B in column 10
Count of records that has value C in column 10
I want to display these counts separately in the same file.
Sample output file should look like.
Count of A rec. Count of B rec Count of C
500. 600. 200.
Can we do this using the Dfsort Trailer1=Count operator?Please advise.
Thanks