I have to combine 22 input datasets.
record length : 144 and record format : fb
i/p:
detail records
Trailer1 - record count (9 bytes)
Trailer2 - record count (9 bytes)
.........
Trailer15 - record count (9 bytes)
Note: No header record.
i have to combine all the input datasets and update the trailer counts of all the files.
o/p:
same file layout.
should get details of all the files and 15 trailer with updated counters of all the files.
trailer identifier is TOTAL ( starting from 1 , 5 bytes length )
ex:trailer
TOTAL NO OF ACCOUNTS THAT ARE S... : 000000001
TOTAL NO OF ACCOUNTS NOT FOUND ... : "
TOTAL NO OF ACCOUNTS THAT ARE N... : "
TOTAL NO OF ACCOUNTS CLOSED ... : "
TOTAL NO OF ACCOUNTS IN OVERDRA... : "
TOTAL NO OF ACCOUNTS WITH DEPOS....
TOTAL NO OF ACCOUNTS WITH A CAU...
TOTAL NO OF ACCOUNTS WITH A PAY...
TOTAL NO OF ACCOUNTS WITH A COU...
TOTAL NO OF ACCOUNTS WITH A NO ...
TOTAL NO OF ACCOUNTS WITH A NO ...
TOTAL NO OF ACCOUNTS WITH A POW...
TOTAL NO OF ACCOUNTS WITH A DEC...
TOTAL NO OF ACCOUNTS THAT ARE O...
TOTAL NO OF ACCOUNTS WITH CREDI...
Counter starts at position : 104