When you need to place an explicit lock, the LOCKING modifier must precede the SQL request that is to be affected by the requested lock.
The system places the requested lock on the object referenced by the LOCKING modifier for the duration of the transaction containing the modified SQL request. If the transaction is a single-statement request, then the specified lock is only in effect for the duration of the request.