What it means
LOCKED (EIBRESP 100) means a request was rejected because use of the resource is restricted by a retained lock or in-doubt unit of work. If unhandled, a file READ ends the task with abend AEX8.
Typical causes
- READ with UPDATE, CONSISTENT or REPEATABLE against a record that has a retained lock.
- WRITEQ TD to a logically recoverable queue defined with WAIT(YES) and WAITACTION(REJECT) whose use is restricted by a unit of work that failed in doubt.
How to fix it
- Investigate and resolve the retained lock on the record, for example from a failed unit of work.
- If you want the transaction to wait, specify WAIT(YES) and WAITACTION(QUEUE) in the TDQUEUE resource definition.
- Handle LOCKED with RESP to avoid the AEX8 abend.