Page 1 of 1

a cobol logic

Posted: Thu Jan 10, 2013 6:27 am
by snehamahajan
please tell the logic for the following program-
updates the account balance for all the accounts after settling the
withdrawals against the existing balance. A customer can withdraw any amount of money any number of times in a day.
The Transaction Details file should be a Sequential Input File.
please help me.

Posted: Thu Jan 10, 2013 12:56 pm
by William Collins
And the Master File is? If sequential, two-file match and create a new file, if KSDS, and transactions generally less than 5% vs records on Master File, then keyed reads and update in place.

The rest is just arithmetic.

Posted: Mon Jan 14, 2013 11:43 am
by Anuj Dhawan
And is it a real Production question or a class-exercise?