A bank stores following disk
files for various transactions relating to money deposit and
withdrawal: File 1: Account Master Organisation :
Index-Sequential on Account Number Structure : 01 - 09 Account
number 10 - 30 Account Holder Name 31 - 60 Account Holder
Address File 2: Employee Master
Organisation : Index - Sequential on
Employee Number Structure : 01-09 Transaction Number 10-18
Date of Transaction 19-20 Transaction Type (Withdrawal / deposit
etc.) 21-29 Account Number for withdrawal or deposit 30-38
Employee number who has processed the transaction Label are
standard. The first field of the records in each file
represents the key field.
Write a COBOL program the updates the
Balance in the Account master and prints each of the transaction
(Reporting error if any in the following output format
: OUTPUT structure : 0-09 Transaction
Number 10-18 Date of Transaction. 19-20 Transaction Type
(Withdrawal /deposit etc.) 21-29 Account Number for withdrawal or
deposit 30-49 Account Holder's Name 50-57 Balance after
transaction 58-66 Employee number who has processed the
transaction 67-86 Name of the person who has processed the
transaction
The file should be sorted in the Order of
Date of Transaction and if the date is same then on account
number. |