Hi dick,
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
Input file:
LRECL=20 byte
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..
Field1:
Field2 should be calculated based on 4 bytes of total 4 bytes
Field2
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...