AS/400 locks only one record at a time, per open file, per
job.
When a record is locked on a file, previous record locked on the same open
file, by the same job, is unlocked.
Function HUnlockRecNum Unlocks the latest record locked in the open file, whatever is the value of current record.
When a lock is requested on a record already locked by another job, the system waits for a delay before to return an error. This delay (WAITRCD) can be changed by CHGPF command on AS/400, or it can be overridden with OVRDBF command called with ASExec.
File locking is supported by Easycom For WinDev.