Q. How do we lock a record in RPG?

A. Chain will lock a record if file opened in update mode and we need to use unlock keyword to release it later or else update keyword will release it automatically. The "(N)" operation extender prevents the CHAIN from locking the record. Chain with No Lock (N) Operation Extender.