
REPORT
>MU
ALL
F
or
example,
given
the
follo
wing
v
alues
in
the
data
sets
STOCK-DET
AIL
and
SALES-DET
AIL:
STOCK-DETAIL
SALES-DETAIL
------------------------------
------------------------------
STOCK#
DESCR
ON-HAND
ACCT#
STOCK#
QUAN
------------------------------
------------------------------
110
NUT
970
666
90
350
60
BOLT
1200
222
60
25
50
NAIL
1000
999
60
500
50
NAIL
900
555
60
75
------------------------------
333
50
45
111
50
100
------------------------------
the
follo wing
comp ound
data
set
en
tries
are
created:
<------
(STOCK-DETAIL)
--------><-------
(SALES-DETAIL)
-------->
--------------------------------------------------------- ---------
STOCK#
DESCR
ON-HAND
ACCT#
STOCK#
QUAN
--------------------------------------------------------- ---------
60
BOLT
1200
222
60
25
60
BOLT
1200
999
60
500
60
BOLT
1200
555
60
75
50
NAIL
1000
333
50
45
50
NAIL
1000
111
50
100
50
NAIL
900
333
50
45
50
NAIL
900
111
50
100
--------------------------------------------------------- ---------
The
one
o ccurrence
of
STOCK#
60
in
STOCK-DET
AIL
is
paired
with
eac
h
o ccurrence
of
STOCK#
60
in
SALES-DET
AIL
resulting
in
3
en
tries
in
the
comp ound
data
set.
Y
ou
can
see
b
y
the
A
CCT#
that
eac
h
of
these
en
tries
is
separate
and
unique.
No
w
supp ose
y
ou
w
an
ted
to
pro duce
a
rep ort
from
this
retriev
al
in
whic
h
y
ou
w
an
ted
to
coun
t
the
n
um
b er
of
STOCK#
in
the
en
tries
retrieved.
The
rep ort
might
lo
ok
like:
>REPORT
>>H1,"DIFFERENT
STOCK#
COUNT:",30
>>TF,STOCK-DETAIL.STOCK#,50,COUNT
>>END
This
rep ort
w
ould
pro duce
the
following:
DIFFERENT
STOCK#
COUNT:
7
This
coun
t
is
incorrect
if
y
ou
w
an
ted
a
coun
t
of
the
unique
STOCK#
en
tries.
Y
ou
need
to
use
the
NOREPEA
T
option
on
the
TF
statement.
This
tells
QUER
Y
to
coun
t
only
the
rst
o ccurrence
of
eac
h
retrieved
en
try
from
STOCK-DET
AIL.
The
rep ort
and
its
output
are
sho
wn
b elow:
>REPORT
>>H1,"DIFFERENT
STOCK#
COUNT:",30
>>TF,STOCK-DETAIL.STOCK#,50,COUNT,NOREPEAT
>>END
DIFFERENT
STOCK#
COUNT:
3
QUERY/V
COMMANDS
3-121
Содержание 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: ......