Input File
----+----1
AAAAA
AAAAA
BBBBB
BBBBB
BBBBB
BBBBB
BBBBB
CCCCC
DDDDD
DDDDD
DDDDD
EEEEE
EEEEE
EEEEE
EEEEE
AAAAA
AAAAA
BBBBB
BBBBB
BBBBB
BBBBB
BBBBB
CCCCC
DDDDD
DDDDD
DDDDD
EEEEE
EEEEE
EEEEE
EEEEE
Expected Out Put
There are 15 lines (02 AAAAA, 05 BBBBB, 01 CCCCC, 03 DDDDD, 04 EEEEE) on Wednesday 02/15/2012.
Lay out of Input File-1
1-5 bytes Field-A
I need output as total number Field-A and each Field-A how many times it is occurred? And at end of the line it has to give yesterdays date (indicates this report for yesterday)
If it is not possible to generate the report in the above manner, please provide any report format which will gives all the above information (Total number of Field-A and individual Field-A numbers )