Ch 13. Sequential File Processing


The Big Picture



























Update Logic

 IF TRANS-KEY = MASTER-KEY
    Update the Master Record
 IF TRANS-KEY > MASTER-KEY
    Move the Master record to New-Master File
 IF TRANS-KEY < MASTER-KEY
    Add the Trans. record to the master record