My input file will have more fields say 5...
I want to calculate the number of records present in the file based on each fields with header information
No. of fields=5
Each field size=4 byte
2222 1111 7777 UUUU KKKK
AAAA OOOO FFFF JJJJ BBBB
VVVV CCCC EEEE RRRF 5555
AAAA OOOO EEEE JJJJ KKKK
2222 2222 2222 2222 2222
My output should be as follows..
Field1 should be calculated on based on first 2 bytes of total 4 bytes..
Field2 should be calculated based on 4 bytes of total 4 bytes
and so on for all fields
No of records in each fields should be calculated based on given length..
Please help me..
Thanx in advance...