
UPD
A
TE
procedure
UPD
A
TE
procedure
Executes
an
UPD
A
TE
command
stored
as
a
pro cedure
in
the
curren
t
Pro
c-le.
Syntax
U
2
PDATE
3
pr
o
c
e
dur
e
name
2
, char
acter
3
F
or
example:
>UPDATE
UPDNAMES
Where
pr
o
c
e
dur
e
name
=
UPDNAMES
>U
CHANGE,%
Where
pr
o
c
e
dur
e
name
=
CHANGE
and
char
acter
=
%
P
arameters
pr
o
c
e
dur
e
name
is
the
name
of
an
UPD
A
TE
ADD,
UPD
A
TE
REPLA
CE,
or
UPD
A
TE
DELETE
command
pro cedure
in
the
curren
t
Pro
c-le.
char
acter
is
an
y
prin
table
ASCI I
c
haracter.
Discussion
Y
ou
can
use
the
CREA
TE
command
to
store
an
y
of
the
three
forms
of
the
UPD
A
TE
command.
Once
the
pro cedure
is
stored
in
the
Pro
c-le,
y
ou
use
this
form
of
the
UPD
A
TE
command
to
execute
it.
Refer
to
the
CREA
TE
command
for
information
on
creating
a
pro cedure.
When
y
ou
execute
the
UPD
A
TE
pro cedure,
QUER
Y
rst
c
hec
ks
eac
h
line
of
the
pro cedure.
If
an
error
o ccurs,
a
message
is
sen
t
and
the
incorrect
statement
in
the
line
is
ignored.
All
other
correct
statements
in
the
pro cedure
are
executed.
If
the
char
acter
is
included
in
the
command,
the
pro cedure
is
listed
b efore
the
execution
b egins.
Example
>> F
LAST-NAME
IS
MAYFIELD
USING
SERIAL
READ
1
ENTRIES
QUALIFIED
> PROC-FILE
=PROCX
> UPDATE
CHANGE
WHAT
IS
THE
VALUE
OF
THE
CITY
>> PETALUMA
WHAT
IS
THE
VALUE
OF
THE
STREET-ADDRESS
>> 37
41ST
AVE.
WHAT
IS
THE
VALUE
OF
THE
CREDIT
RATING
>> 8.5
In
this
example,
the
FIND
command
is
used
to
lo
cate
the
en
try
to
b e
up dated.
The
pro cedure
named
CHANGE
(lo
cated
in
Pro
c-le
PR
OCX)
con
tains
the
following:
U
REPLACE,
CITY="";
STREET-ADDRESS="";
CREDIT-RATING="";
QUERY/V
COMMANDS
3-157
Содержание 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: ......