
XEQ
If
y
ou
en
ter
4
CONTROL
5
Y
in
resp onse
to
a
v
alue
prompt,
as
in
the
case
of
n
ull
v
alues
and
the
NOD
A
T
A
option,
QUER
Y
will
terminate
the
command,
close
the
XEQ
le,
and
prompt
for
another
command.
In
some
cases,
a
retriev
al
command
with
n
ull
v
alues
will
create
an
execution
lo
op
where
the
only
w
a
y
to
terminate
the
command
is
with
4
CONTROL
5
Y.
The
follo wing
is
an
example
of
an
XEQ
le
whic
h
will
create
an
execution
lo
op.
The
XEQ
le
is
named
FIND
A
CCT
and
con
tains:
FIND
ACCT#=""
REPORT
ALL
XEQ
FINDACCT,NODATA
Examples
Example
1
In
this
example,
an
XEQ
le
called
FISET
is
used
to
dene
a
particular
QUER
Y
session
en
vironmen
t.
The
FISET
le
con
tains
these
records:
DEFINE
ORDERS
CLERK
5
CUSTOMER,SALES
PROCX
TERM
QUER
Y
executes
the
DEFINE
command
and
uses
the
other
records
as
data
in
resp onse
to
the
DEFINE
command
prompts.
If
the
NOD
A
T
A
option
had
b een
sp ecied,
QUER
Y
w
ould
prompt
y
ou
for
eac
h
DEFINE
prompt.
> XEQ
FISET
DEFINE
DATA-BASE
=
ORDERS
PASSWORD
=
CLERK
MODE
=
5
DATA-SETS
=
CUSTOMER,SALES
PROC-FILE
=
PROCX
OUTPUT
=
TERM
OUTPUT
=
TERM
END
OF
XEQ
FILE
Example
2
This
example
sho
ws
ho
w
an
XEQ
le,
PRXFIL,
can
b e
used
to
store
and
execute
a
pre-planned
nd-and-rep ort
sequence.
It
also
sho
ws
the
use
of
n
ull
data
v
alues
and
ho
w
the
FIND
CHAIN
command
can
b e
used
to
access
t
w
o
data
sets.
Here,
the
information
from
CUSTOMER
and
SALES
is
used
to
prepare
a
bill.
> XEQ
PRXFIL,NODATA
FIND
CHAIN
CUSTOMER.ACCOUNT,SALES.ACCOUNT=""
END
WHAT
IS
THE
VALUE
OF
-
ACCOUNT
>> 2
2
ENTRIES
QUALIFIED
REPORT
BILL
.
.
.
QUERY/V
COMMANDS
3-161
Содержание 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: ......