Auto Balance Example - IBM 3741 Data Station Reference Manual

Table of Contents

Advertisement

Each transaction record contains the item number and
item cost. Each item sold is considered one transaction.
After the transaction records are entered, the operator
must determine if any of the transactions were skipped
during the entering process. To do this the cost field must
be precomputed, and programmed as a field totals field,
and the total cost from the accumulator must be read into
a summary record. Then the field totals total can be com-
pared with the precomputed total cost. If the totals are
equal, all the transactions were entered. If the totals are
not equal, the larger total can be subtracted from the
smaller total to determine which transaction was skipped
or duplicated. For example, if the field totals total is
4463, subtracting 4463 from 5197 gives 734 which indicates
that the transaction for item number 10897, cost 734, was
not entered on the disk.
To use the cost as a field totals field to be accumulated in
accumulator 2, use the following program:
N ---- R 2 -------- E
To read accumulator 2 into the summary record and reset
the accumulator to zero, use the following program for the
summary record:
N ----B 8-------- E
Auto Balance Example
The online field totals feature can be used to find errors
when an accumulated total does not match a precomputed
balance sheet total. Errors in the records can be found by
using online field totals in update or verify mode. I n verify
or update mode, only differences between the old value of
the field and the new value are accumulated into the
accumulators.
For example, assume an offline field totals operation was
performed to accumulate a total on the total cost of items
ordered. When the offline field totals operation is comp-
lete, the field totals total can be displayed and compared
with a precomputed total on a balance sheet. Assuming
that the field totals total and the precomputed total do
not match, online field totals could be used in update
(or verify) mode to find the record(s) in error (or missing)
and make appropriate corrections to the records. Online
field totals in update or verify mode accumulates only the
difference between the old value of the field and the new
value of the field. Therefore, after the operator changes
some records, the accumulators could be displayed to see
if the difference between the totals has been accounted
for. If not, the operator would continue until the
difference was accounted for.
Online Field Totals
39

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents