
REPORT
Discussion
If
the
total
statement
is
lab
eled
TF,
the
ADD,
A
VERA
GE,
and
COUNT
options
apply
to
all
o ccurrences
of
the
data
item
in
the
rep ort.
Negative
data
item
v
alues
of
t
yp e
P ,
Z ,
I ,
J ,
and
K
are
output
with
a
sp ecial
c
haracter
in
the
rightmost
p osition,
unless
y
ou
use
the
NOPUNCH
output
con
trol
statement.
This
t
yp e
of
output
is
called
o
v
erpunc
h.
Refer
to
the
REPOR
T
ALL
command
for
more
information
on
o
v
erpunc
h.
If
y
ou
use
the
sp ecial
form
of
the
command,
sp ecifying
only
a
register
without
a
element
,
the
register
is
cleared
(reset
to
zero)
when
a
con
trol
break
o ccurs.
A
con
trol
break
results
from
a
sort
statement
lab
eled
from
1
to
10.
When
a
con
trol
break
o ccurs,
the
total
statement
corresp onding
to
the
sort
lev
el
causing
the
break
prin
ts
the
information
y
ou
sp ecify
.
T
otal
statements
not
lab
eled
TF
require
corresp onding
sort
statements.
(Refer
to
the
description
of
the
sort
statement
for
more
information
on
con
trol
breaks.)
T
o
p erform
more
than
one
op eration
(total,
a
v
erage,coun
t)
on
the
same
data
item,
y
ou
m
ust
sp ecify
a
total
statement
for
eac
h
op eration.
The
information
is
prin
ted
on
the
same
line
if
y
ou
use
the
same
level
for
eac
h
statement.
No
more
than
v
e
(5)
data
items
can
b e
used
as
prin
t
elemen
ts
in
total
statements.
>REPORT
>>H1,"AS
OF:",6
>>H1,DATE,15
>>H1,PAGENO,71
>>H1,"PAGE",69
>>H2,"BOBO'S
MERCANTILE",45
>>H3,"ON
HAND
INVENTORY",45,SPACE
A2
>>H7,"BIN#",4
>>H7,"SUPPLIER",14
>>H7,"STOCK",33
>>H7,"SHIP
DATE",49
>>H7,"INVENTORY",68
>>H8,"AMOUNT",68
>>D1,STOCK#,36
>>D1,LASTSHIPDATE,48
>>E2,"XX/XX/XX"
>>S2,BINNUM
>>S1,SUPPLIER
>>S,LASTSHIPDATE
>>G2,BINNUM,3,SPACE
B
>>G1,SUPPLIER,20
>> T2,"
*",70
>> T2,"BIN
TOTAL",14,SPACE
B,SPACE
A
>> TF,"TOTAL
INVENTORY",20,SPACE
B3
>> TF,"
**",71
>>END
The
total
statements
whic
h
ha
v
e
b een
added
merely
prin
t
c
haracter
literals.
The
totals
are
computed
with
register
statements
whic
h
are
describ ed
next.
More
total
statements
are
added
to
the
example
in
REPOR
T
Register
Statemen
ts.
In
this
example,
the
rst
total
statement
prin
ts
an
asterisk
in
column
70
and
the
next
one
prin
ts
a
c
haracter
literal
when
a
lev
el
2
con
trol
break
o ccurs.
When
the
nal
totals
are
prin
ted,
the
last
t
w
o
total
statements
prin
t
the
sp ecied
c
haracters.
The
resulting
rep ort
app ears
as
follo
ws.
AS
OF:
01/07/86
PAGE
1
QUERY/V
COMMANDS
3-119
Содержание 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: ......