Displaying Offline Field Total Accumulators; Writing Field Totals Into Record On Disks; Example - IBM 3742 Reference Manual

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

Advertisement

Characters
<
F
CCC
Wor N
M
Meaning
This character identifies the program
as a field totals mask format and must
be in the first position of every pro-
gram buffer used for mask statements.
The F stands for any character 1
through 9 or A on the 3741 or on the
3742 with the 128 feature or any char-
acter 1 through
6
on the 3742. The
character indicates which field totals
program is to be selected if this mask
statement is satisfied.
CCC stands for a 3·digit position num-
ber indicating the position of the data
record that is to be compared with the
mask.
(001 - 080)
3742
(001 - 128)
3741 or 3742 with
128 feature
W indicates that the position in the
record must contain the character used
in the mask in order for the search to
be satisfied. N indicates that the record
position must not have the mask
character.
M stands for the character with which
the record position is to be compared.
This is called the mask. A comma (,)
must separate mask characters.
Figure 21. Mask Statement Format Characters
If more than one mask statement is specified in a program
buffer, each mask statement must be separated by a semi-
colon (;). The last character in a program buffer must be
either a colon (:) or a period (.). The colon indicates that
the mask statements are continued in a higher numbered
program buffer. When a colon is specified after a W, N, or
comma, the colon is treated as a mask character. The
period indicates the end of the last mask statement. A
program number followed by a period indicates an uncon-
ditional program selection.
34
If none of the mask statements are satisfied by the data
record, the data record is not processed by the field totals
program.
Displaying Offline Field Total Accumulators
To display the contents of the field total accumulators on
the display screen while in field totals mode, do the follow-
ing:
1.
Turn AUTO REC ADV off.
2.
Press FUNCT SEL upper.
3.
Press DISPLAY FIELD TOTALS.
The data currently being displayed on the display screen is
then replaced by the data in the accumulators.
To remove field totals data from the display screen and
redisplay the data that was replaced by the field totals,
press either RESET or
R.
Pressing R also resets the accumu-
lators to zero. Pressing RESET does not change the accumu-
lators. All other keys are inoperative when field totals are
displayed.
Writing Field Totals into Records on Disks
After accumulating field totals in the accumulators, the con-
tents of the accumulators can be written into a field in the
record on disk. To do this, program the field in the record
into which the total is to be read with the field definition
character 8 followed by a 4, 5, 6, 7, 8, or 9. If 4, 5, or 6 is
specified, the accumulator is not reset. If 7,8, or 9 is spe-
cified, the accumulator is reset to zero. A 4 or 7 specifies
accumulator 1, a 5 or 8 specifies accumulator 2, and a 6 or
9 specifies accumulator 3.
If the field in the record that the accumulated total is to be
read into is shorter than the accumulated total, only the low-
order digits of the accumulator are read into the field. If the
field in the record is larger than the accumulated total (19
digits), the total is right adjusted in the field and the re-
mainder of the field is filled with zeros.
Example
An offline field totals operation is to be performed on a
data set that contains several different kinds of records.
The field totals operation to be performed depends upon
the content of the records.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

37403741

Table of Contents