
REPORT
REPORT
Lists
data
item
v
alues
of
en
tries
lo
cated
b
y
a
retriev
al
command
in
the
format
y
ou
sp ecify
.
Syntax
R
2
EPORT
3
r
ep
ort
statement ;
.
.
.
END
F
or
example:
>REPORT
>>H1,"NAME
LIST",20,SPACE
A2
>>D,LAST-NAME,20
>>D,FIRST-NAME,30
>>END
or
>R
H1,"NAME
LIST",20,SPACE
A2;D,LAST-NAME,20;D,FIRST-NAME,30;END
Where
he
ader
statement
=
H1,"NAME
LIST",20,SPACE
A2
and
detail
statements
=
D,LAST-NAME,20
and
D,FIRST-NAME,30
P
arameter
r
ep
ort
statements
consist
of
a
sequence
of
header,
detail,
sort,
group,
total,
register,
edit,
and
output
con
trol
statements,
as
outlined
in
T
able
3-5 .
These
statements
are
explained
in
detail
later
in
this
section.
Statemen
ts
can
b e
en
tered
on
separate
lines
or
on
one
line
separated
b
y
semicolons.
Discussion
If
y
ou
en
ter
REPOR
T
without
following
it
with
rep ort
statements,
QUER
Y
will
prompt
y
ou
for
the
statements
un
til
y
ou
en
ter
an
END
at
the
prompt.
If
the
rst
rep ort
statement
is
in
error,
the
REPOR
T
command
terminates.
The
REPOR
T
command
is
an
extension
of
a
retriev
al
command
in
that
it
prin
ts
a
rep ort
of
the
data
en
tries
lo
cated
b
y
the
last
FIND,
MUL
TIFIND,
or
SUBSET
command.
REPOR
T
output
can
b e
directed
to
an
y
desired
output
device
through
the
MPE
:FILE
command
and
the
QUER
Y
OUTPUT=
command.
Refer
to
the
OUTPUT=
command
for
further
discussion.
Y
ou
can
sp ecify
y
our
o
wn
user
dened
pro cedure(s)
to
enable
y
our
rep ort
to
p erform
sp ecialized
tasks
not
pro
vided
b
y
QUER
Y.
This
is
an
adv
anced
capabilit y
used
b
y
programmers.
Refer
to
App endix
F
for
further
discussion.
QUERY/V
COMMANDS
3-97
Содержание 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: ......