... gets a account number. It then looks at File B and totals the amounts for that same account number. For each occurence, as it totals, it marks the matching records in File B as complete. 2). It then adds the total amount of those records ( accumulated as each one is read ) to an existing amount ...