IBM Extension

Record Locking

A successful READ statement must precede any REWRITE statement for the following file types: Such a READ statement must not include the NO LOCK phrase. If an attempt is made to replace a record that has been selected by a READ statement, and that record was not locked when it was read, the REWRITE statement will be unsuccessful.
End of IBM Extension