RPG (IBM i / AS/400) · File status code
What does Status Code 01218 mean in RPG (IBM i / AS/400)?
A CHAIN, READ, or UPDATE tried to obtain a record for update but another job already holds a lock on it, and the record-wait time (WAITRCD) expired before that lock was released.
A CHAIN, READ, or UPDATE tried to obtain a record for update but another job already holds a lock on it, and the record-wait time (WAITRCD) expired before that lock was released.
Trap %STATUS = 01218 and retry after a short delay or tell the user the record is in use, and check whether WAITRCD needs tuning or another job is holding locks too long.