Professional Documents
Culture Documents
1. 5 Data processing
(Master File / Transaction File)
Let us consider the payroll system of a company that pays its workers weekly.
One file is called the master file, which contains all the important data that does not
change often, such as name, works number, department, hourly rate, and so on.
The other file, called the transaction file, contains the data that changes each week,
such as hours worked.
The master file would already be sorted in order of the key field so that processing is
easier to perform. The transaction file would probably be
in the order that the transactions were collected. Before these two files can
be processed together to produce the payroll, the transaction file needs to be
sorted in the same order as the master file and will also need to be checked for
errors using validation checks.
First record in the transaction file is read and first record in the old master file is read
Computer calculates the pay
Using rate of pay from master file
Using hours worked from transaction file