
REPORT
SUBTRACT
subtracts
the
data
element
from
the
con
ten
ts
of
the
register.
MULTIPLY
m
ultiplies
the
con
ten
ts
of
the
register
b
y
the
data
element
.
DIVIDE
divides
the
con
ten
ts
of
the
register
b
y
the
data
element
.
NOREPEAT
can
only
b e
used
if
the
REPOR
T
command
follo
ws
a
MUL
TIFIND
command.
When
NOREPEA
T
is
used,
the
data
element
m
ust
b e
a
data
item
name.
The
NOREPEA
T
option
allo ws
the
total
statement
to
b e
executed
for
a
comp ound
en
try
only
if
the
simple
en
try
has
not
b een
previously
encoun
tered
in
the
statement.
By
default,
the
register
statement
is
executed
for
all
comp ound
en
tries.
The
n
um
b er
of
registers
whic
h
use
the
NOREPEA
T
option,
plus
the
n
um
b er
of
sort
lev
els
for
whic
h
the
TOT
AL
statement
uses
NOREPEA
T,
m
ust
b e
less
than
or
equal
to
10.
Refer
to
the
JOIN
command
for
information
ab out
comp ound
data
sets.
F
or
a
more
detailed
explanation
of
this
option
refer
to
the
section
on
REPOR
T
T
otal
Statemen
ts.
Discussion
After
eac
h
op eration
is
executed,
the
result
is
placed
in
the
register
sp ecied
at
the
b eginning
of
the
statement.
F
or
example,
assume
R2
con
tains
3
and
R4
con
tains
2.
After
the
statement
b elow
is
executed:
R2,MULTIPLY,R4
R2
will
con
tain
6.
Using
QUERY
Registers
The
register
statements
in
a
REPOR
T
command
describ e
a
xed
sequence
of
op erations
to
b e
p erformed
eac
h
time
a
new
data
en
try
is
pro cessed
for
the
rep ort.
If
y
ou
are
familiar
with
programming
tec
hniques,
y
ou
can
consider
the
Rn
statements
as
a
program
\lo
op"
whic
h
is
executed
once
for
eac
h
en
try
in
the
rep ort.
Rn
statement
execution
aects
only
the
30
QUER
Y
registers.
No
output
results
from
the
statements,
although
y
ou
can
prin
t
the
con
ten
t
of
an
y
register
b
y
using
other
REPOR
T
command
statements
(with
the
exception
of
sort
and
header
statements).
All
register
op erations
except
LO
AD
are
cum
ulative.
When
eac
h
Rn
statement
is
executed,
the
curren
t
con
ten
ts
of
the
register
are
op erated
on
b
y
the
data
elemen
t
and
the
result
is
stored
in
the
register
again.
Initializing
Registers
Eac
h
register
is
initialized
to
zero
when
the
REPOR
T
command
b egins
execution.
Y
ou
can
reset
the
register
to
zero
in
three
w
a
ys:
1.
Load
a
zero
in
to
the
register.
F
or
example:
R3,L,"0"
2.
Use
a
total
statement
to
reset
the
register
to
zero
when
a
con
trol
break
o ccurs.
F
or
example,
the
follo
wing
statement
sets
Register
3
to
zero
when
a
con
trol
break
o ccurs
as
a
result
of
sort
lev
el
2.
T2,R3
QUERY/V
COMMANDS
3-123
Содержание QUERY
Страница 10: ......
Страница 17: ...Figure 1 1 ORDERS Data Base Structure Figure 1 2 Sample Entry Values INTRODUCING QUERY V 1 7 ...
Страница 20: ...Figure 1 3 IMAGE QUERY Environments 1 10 INTRODUCING QUERY V ...
Страница 36: ......
Страница 165: ...REPORT G1 GROUP TITLE 11 END QUERY V COMMANDS 3 129 ...
Страница 199: ...XEQ TF TOTAL DUE 9 SPACE B2 SKIP A TF R0 70 E2 S PURCH DATE END QUERY V COMMANDS 3 163 ...
Страница 200: ......
Страница 244: ......
Страница 278: ......
Страница 279: ...G ASCII CHARACTER SET This appendix is not available in this edition ASCII CHARACTER SET G 1 ...
Страница 280: ......