
SETLOCKS
SETL
OCKS
Prev
en
ts
automatic
unlo c
king
of
a
data
set.
Syntax
SET
2
LOCKS
3
Discussion
The
SETLOCKS
command
prev
en
ts
the
automatic
unlo c
king
of
a
data
set
after
a
retriev
al,
up date,
or
REPOR
T
command
has
b een
executed.
Normally
,
QUER
Y
lo
c
ks
a
data
set
while
these
commands
are
executing,
but
not
in
the
in
terim
b et
w
een
commands.
By
issuing
the
SETLOCKS
command,
y
ou
can
lo
c
k
the
data
set
during
the
time
b et
w
een
commands.
This
ensures
that
retriev
al
information
do es
not
c
hange
b efore
it
is
rep orted.
Lo c
king
remains
in
eect
un
til
a
RELEASE
command
is
issued.
QUER
Y
decides
what
data
sets
to
lo
c
k
based
on
the
retriev
al
or
up dating
command
y
ou
use.
> SETLOCKS
> PROC=PROCA
> FIND
SALES.STOCK#>20
USING
SERIAL
READ
6
ENTRIES
QUALIFIED
WARNING:LOCKS
ARE
BEING
HELD
> REPORT
ALL
In
the
example
ab o
v
e,
lo
c
king
takes
place
when
the
FIND
command
is
en
tered
and
will
remain
in
eect
un
til
a
RELEASE
command
is
en
tered.
After
a
SETLOCKS
command
has
b een
issued,
QUER
Y
pro
vides
a
w
arning
prompt
follo
wing
ev
ery
command.
If
y
ou
en
ter
a
SETLOCKS
command
a
second
time
y
ou
will
receiv
e
the
following
message:
SETLOCKS
COMMAND
ALREADY
IN
EFFECT
Lo c
ks
incurred
b
y
an
y
QUER
Y
command
follo wing
a
SETLOCKS
command
will
remain
in
eect
un
til
a
RELEASE
or
EXIT
command
is
en
tered,
or
un
til
QUER
Y
is
ab orted
in
either
job
or
session
mo
de.
The
SETLOCKS
command
o
v
errides
LOCK
OPTION=OFF
un
til
the
RELEASE
command
is
issued,
at
whic
h
p oint
LOCK
OPTION
will
take
eect
again
with
the
same
v
alue
it
had
prior
to
the
SETLOCKS
command.
Note
The
SETLOCKS
command
may
impact
other
users
of
the
data
base(s).
Lo c
ks
should
b e
released
as
so
on
as
p ossible.
P
articular
care
should
b e
taken
when
retrieving
from
m
ultiple
data
sets
or
m
ultiple
data
bases.
Lo c
king
only
takes
place
in
mo
des
1,
2,
and
5.
QUERY/V
COMMANDS
3-137
Summary of Contents for QUERY
Page 10: ......
Page 17: ...Figure 1 1 ORDERS Data Base Structure Figure 1 2 Sample Entry Values INTRODUCING QUERY V 1 7 ...
Page 20: ...Figure 1 3 IMAGE QUERY Environments 1 10 INTRODUCING QUERY V ...
Page 36: ......
Page 165: ...REPORT G1 GROUP TITLE 11 END QUERY V COMMANDS 3 129 ...
Page 199: ...XEQ TF TOTAL DUE 9 SPACE B2 SKIP A TF R0 70 E2 S PURCH DATE END QUERY V COMMANDS 3 163 ...
Page 200: ......
Page 244: ......
Page 278: ......
Page 279: ...G ASCII CHARACTER SET This appendix is not available in this edition ASCII CHARACTER SET G 1 ...
Page 280: ......