
REPORT
REPORT
-
EDIT
ST
A
TEMENTS
The
edit
statement
is
used
for
formatting
data
item
v
alues
prin
ted
in
a
rep ort.
The
statement
p erforms
suc
h
functions
as
suppressing
leading
zeros
in
n
umeric
v
alues,
inserting
c
haracters
suc
h
as
dollar
signs,
dashes,
commas,
and
decimal
p oints.
It
also
masks
c
haracters
to
eliminate
them
from
the
prin
ted
output.
Edit
statements
can
app ear
an
ywhere
in
the
rep ort.
Syntax
E numb
er,"e
dit
mask"
F
or
example:
E3,"$$$999CR"
Where
numb
er
=
3 ,
and
e
dit
mask
=
"$$$999CR"
P
arameters
numb
er
is
an
in
teger
from
0
to
9
iden
tifying
the
edit
statement.
A
rep ort
can
ha
v
e
at
most
ten
edit
statements,
eac
h
with
a
unique
n
um
b er.
"e
dit
mask"
consists
of
from
1
to
20
c
haracters
(if
the
mask
is
to
edit
n
umeric
data
item
v
alues)
or
from
1
to
the
maxim
um
length
of
the
data
item,
not
to
exceed
the
maxim
um
record
length
of
the
output
device
(if
the
mask
is
to
edit
alphan
umeric
data
item
v
alues.)
In
either
case,
the
c
haracters
m
ust
b e
surrounded
b
y
quotation
marks.
The
length
of
the
edit
mask
determines
the
length
of
the
output
eld
that
is
prin
ted.
Alphanumeric
Edit
Masks
Alphan
umeric
edit
masks
consist
of
X's
(used
as
place
holders)
and
an
y
other
ASCI I
alphan
umeric
prin
ting
c
haracters
(used
as
insertion
c
haracters).
QUER
Y
examines
the
data
item
v
alue
sp ecied
in
the
detail,
group,
or
total
statement
and
the
edit
mask
sp ecied
in
the
referenced
edit
statement,
starting
with
the
leftmost
c
haracter
of
eac
h.
If
the
c
haracter
in
the
edit
mask
is
X,
a
c
haracter
from
the
data
item
v
alue
is
prin
ted
in
the
corresp onding
p osition
of
the
output
eld.
If
the
c
haracter
in
the
edit
mask
is
an
y
c
haracter
other
than
an
X,
the
edit
mask
c
haracter
is
prin
ted
in
the
corresp onding
p osition
of
the
output
eld.
F
or
example,
if
the
v
alue
ABCD
is
edited
with
the
mask
\X-X-X-X",
the
result
is
prin
ted
as
A-B-C-D.
If
there
are
few
er
X's
in
the
edit
mask
than
there
are
in
the
data
item
v
alue,
the
rightmost
c
haracters
of
the
data
item
v
alue
that
do
not
corresp ond
to
an
X
in
the
mask
are
omitted.
F
or
example,
if
the
v
alue
ABCD
is
edited
with
the
mask
\XX",
the
result
is
prin
ted
as
AB.
If
there
are
more
X's
in
the
edit
mask
than
there
are
c
haracters
in
the
data
item
v
alue,
QUER
Y
prin
ts
asterisks
in
place
of
the
un
used
X's
in
the
edit
mask.
All
insertion
c
haracters
in
the
mask
are
prin
ted
in
the
output
eld.
F
or
example,
if
the
v
alue
ABCD
is
edited
with
the
mask
\XXXX-X",
the
result
is
prin
ted
as
ABCD-*.
Here
are
t
w
o
more
examples
of
alphan
umeric
edit
masks:
3-106
QUERY/V
COMMANDS
Содержание 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: ......