Chapter 6. Offline Field Totals; Offline Field Totals Operation; Displaying Offline Field Total Accumulators - IBM 3741 Data Station Reference Manual

Table of Contents

Advertisement

Chapter 6. Offline Field Totals
Field totals can be used for batch auditing, to obtain what
is sometimes referred to as hash totals, or for other appli-
cations where totals are required, such as summing the
prices of individual items on an invoice to obtain the total
order cost.
The offline field totals feature is used to obtain totals
from records that have already been entered, updated, or
verified. The offline field totals feature uses three 19-digit
accumulators to add, under program control, data in
specified fields into the assigned accumulator. A field total
may include any number, 0 through 9, and anyone of the
256 EBCDIC characters. All codes with low-order four
bits equal to 0 through 9 are added with a value of 0 through
9. All other codes have the value of
O.
All fields having
units position codes with the high-order four bits equal to
a B or D are negative fields.
The offline field totals feature allows you to:
Accumulate totals.
Read field totals from an accumulator into a record
without resetting the accumulator.
Read field totals from an accumulator into a record
and reset the accumulator to zero.
OFFLINE FIELD TOTALS OPERATION
The offline field totals feature can be selected from the
read index or update mode. When this feature is selected,
the mode changes to field totals and an F is displayed in
the status line. See the
IBM
3741
Data Station Operator's
Guide,
GA21-9131, for information on field totals oper-
ating procedures.
Offline field totals require programs and control statements.
Programs define what field totals operations are to be per-
formed and control statements identify which records are
to be processed and which program is to be used to process
each record. A description of how to prepare programs and
control statements for field totals operations is provided
later in this chapter.
40
When the field totals operation is initiated, the accumu-
lators are reset to zero. Records are processed under
control of a program specified by a control statement
that was satisfied. Field definition characters, except
those followed by a number, are ignored. Field totals
fields are identified by following a field definition
character with a number (1 through 9) which specifies
which of the accumulators are involved in the field totals
operation.
The low-order 14 digits of a field totals field are added
into the specified accumulators. Deleted records are
bypassed in a field totals operation. Disk errors and
invalid control statement errors stop the field totals
operation.
If AUTO RECADV is turned off during a field totals
operation, the field totals operation stops, and the record
following the last record processed is displayed. Press
REC ADV to process the record displayed and advance to
the next record. Pressing RESET during a field totals
operation changes the mode to update mode and terminates
the field totals operation.
At the end of a field total operation, the accumulators
retain the accumulated field totals unless a read out and
reset was the last operation performed. If the end-of-data
address is reached, the data set label is displayed, and the
mode changes to read index mode.
Displaying Offline Field Total Accumulators
The contents of the field total accumulators and their sign
can be displayed any time during the field total operation.
For the 3741, the cursor must be at the start of a field and
not at the end of record condition. For information on
how to display the accumulators during a field totals
operation, see the
IBM
3741
Data Station Operator's
Guide,
GA21-9131. Figure 19 shows the field totals display.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents