Simple concurrency

If you are not sure which choice to make concerning locking and concurrency, you can use the following guideline: If your application accesses non-static tables, and there is no risk of deadlock, have your program execute the following statements when it starts up (immediately after the first CONNECT or DATABASE statement):
SET LOCK MODE TO WAIT
SET ISOLATION TO REPEATABLE READ

Ignore the return codes from both statements. Proceed as if no other programs exist. If no performance problems arise, you do not need to read this section again.