| 
 Updating
a file. 
A frequently performed operation on files
is the updating of a  master file using a
 transaction file. 
A master
file is a large semi-permanent file
which contains some data that may change whenever a transaction
takes place. These transactions are stored on a temporary small
file called a transaction
file, and this is used to update the master file after a certain period has
elapsed (at the end of each day / week etc). 
It is important
that the master file and the transaction file are sorted on the
same key field. 
 The system flow chart for the process is shown below: 
  
  
  
There are two input files : 
The Old Master File 
The Transaction File (sorted) 
And one output file : 
The New Master File. 
  
  
       |