Programming Project 8 will require you to write code that will use sequential transaction files to update a master file. The transaction file represents debits and credits to a bank account; the master file shows the customer's account number, name, and current balance.
There are two parts to the assignment. In part 1 you will use a sequential transaction file (TXN1.DAT) to update a sequential master file (SMASTR.DAT) resulting in a new version of the master file which you should name NEWMASTR.TXT. In part 2 you will use a sequential transaction file (TXN2.DAT) to update an indexed master file (IMASTR.DAT).
The programs below will allow you to generate the transaction files and master files. Depending on how your web browser is configured you may be able to just click on the link and be prompted for a download. Otherwise right-click on the link and select "Save Target As" from the pop-up menu.
Note that before you compile these programs you may wish to edit the source code to modify the ASSIGN clause of the SELECT statement in the ENVIRONMENT DIVISION to specify exactly the disk and path where the program should create the output file
Download, compile, and run this program to generate the sequential transaction file TXN1.DAT.
Download, compile, and run this program to generate the sequential customer master file SMASTR.DAT.
Download, compile, and run this program to generate the sequential transaction file TXN2.DAT.
Download, compile, and run this program to generate the indexed customer master file IMASTR.DAT.