Hi!
Could any one tel me how to create header record after reading few records with person-name ? After writing header record i should write detail records which are having the same person-name?
header record should be created only when the amount of all its detail records is >10$
detail record should be created only when the amount in that record is >0
Eg:
i/p file :
abc savings 10000
abc current 20000
pqr savings 5000
pqr current 3000
xyz savings 0
xyz current 0
o/p file:
abc ====header=== 30000
abc savings 10000
abc current 20000
pqr ====header=== 8000
pqr savings 5000
pqr current 3000
========No header record for xyz=======
========No detail record for xyz=========