Offline Field Totals; Selecting Offline Field Totals; Mask Statements - IBM 3742 Reference Manual

Data entry system; data station; dual data station
Table of Contents

Advertisement

OFFLINE FIELD TOTALS
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 the three 19-digit
accumulators to add, under program control, data in speci-
fic 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 0 through 9 .
. All other codes have the value of O. All fields in which the
units positions codes have the high-order four bits equal to a
B or D are negative fields.
In addition to the field totals capability available with the
online fields total feature, the offline field totals feature
allows the user to read field totals from an accumulator
into a record without resetting the accumulator.
Selecting Offline Field Totals
The offl ine 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 on
the status line. On the 3742, selecting field totals mode or
field totals display from either station prevents the use of
the other keyboard.
To perform offline field totals:
1.
Insert disk and close cover.
2.
Load the programs and mask statements needed to
obtain the field totals.
3.
If in the update mode, position the disk to the first
record to be used in the field totals operation.
4.
5.
Turn AUTO R EC ADV switch on for automatic
record advancing.
Press FUNCT SEL upper and COMPUTE FIELD
TOTALS.
The accumulators are reset to zero, and the field totals
operation begins. Records are processed under control of
the program specified in the mask statements. Field defini-
tion characters are ignored, except those followed by a
number. Field totals fields are identified by following a
field definition character with a 1, 2, or 3 which specifies
which of the three accumulators is to be used.
The low-order 14 digits of a field totals field are added into
the specified accumulators. Overflow beyond 19 digits in
an accumulator is not indicated. Deleted records are by-
passed. Disk errors and invalid mask statement errors stop
the field total operations.
If AUTO REC ADV is turned off, the field totals operation
stops, and the record following the last record processed
is displayed. Press REC ADV to process the record dis-
played and advance to the next record. Pressing RESET
during a field totals operation changes the mode to update
mode.
At the end of a field total operation, the accumulators
retain the field totals. If the end-of-data address is
,reached, the data set label is displayed, and the mode
changes to read index mode.
Mask Statements
A mask statement causes a particular program to be selected
to process a particular type of record. The mask statement
has either of the following formats:
<FCCCWM 1 ,M2,M3
<FCCCNM1,M2,M3
The characters in the mask statement format have the
meanings listed in Figure 21.
The mask statement 101 OWA,B,C means that the data
record is processed by the offline field totals program in
program buffer 1 if position 010 of the data record con-
tains either A, B, or C.
The mask statement 1010NA,B,C means that the data
record is processed by the offline field totals program in
program buffer 1 if position 010 of the data record does
not contain either A, B, or C.
The & can be used in a mask statement to perform a logical
AND function. For example, the mask statement
1001WA,B&010WZ means that the data record is processed
by the field totals program in program buffer 1 if position
001 of the data record contains an A or B and position 010
of the record contains Z.
Field Totals
33

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

37403741

Table of Contents