Chapter 13. Scenario 2: Using Debug Tool 399
When a transaction to list shares is processed, the program starts to read the
customer file. It reads the records one at a time and prints the details, until the
record of a different customer is read.
Review the Transaction file and see the two transactions. You realize that it does
not matter if RB_DEMO had no shares in IBM and Veck_Transport before the
Trader batch job executed, because two records were written to the customer file
when the program processed these records. One was for IBM and another was
for Veck_Transport.
Recognize that when TRADERB processes the record in the transaction file to
list the shares held by RB_DEMO, the paragraph READ-CUSTFILE-NEXT should be
executed at least f ...