On the client
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
When a lock wait time out occurs on the server because of a lock conflict that
exceeds the time specified by the Lock Wait Timeout (-lkwtmo) startup parameter, a STOP
condition is raised on the client side.
You cannot trap this stop condition simply by checking ERROR-STATUS:ERROR for
a RUN statement that executes a remote procedure.
The only way to handle this situation is to use the ON STOP phrase,
as shown in this code fragment, as shown:
|
If lockrecords.p terminates on the server
because of a lock wait time out, the server raises a STOP condition on the client. The client program flow never reaches the
message following the RUN statement that executes
lockrecords.p, However, the client can catch
the STOP condition and handle character string returned
in RETURN-VALUE.