When a good record is found then write it to a file containing valid inventory records. Create a control file for the valid inventory records that contains one record made up of beginning control totals and change control totals for total record count, and beginning and change hash totals for store, item, price, cost, quantity sold, quantity purchased, quantity on hand, current quantity sold, and current quantity purchased. Print the contents of your beginning control totals after the exception report. Please code a simple Sort program to create a valid sorted master file for future reporting and updating purposes. No printed output is required from this step.
Transactions are input records used to update our valid sorted master file.
Prior to using these transaction records we will want to validate them. STEP 4 Create a simple Sort program to sequence your valid transaction records in order by store, dept, item number, and trans code. The output from this program will be a valid sorted transaction file to be used in the sequential master update program. No printed output is required from this step. Use program 14-2 beginning on page 466 as a sample.