PreviousNext
Help > Development > Accessing AS/400 data > Native Access > Record Locking > Delay and retries.
Delay and retries.

When a program requests a record lock, if the record is already locked, the system waits during a delay before returning an error, in case of the record become available.

This delay can be changed on the system with CHGPF command or overridden with OVRDBF command called with ASExec function before file open.

 

Example:

ASExec("OVRDBF FILE(SP_CUST) WAITRCD(*IMMED) OVRSCOPE(*JOB) ")

 

If the record lock fails, WinDev tries again. The number of retries is set by H.NbRetry WinDev keyword.
Warning : Each retry includes the system delay.