Learn it on Mainframe Path. Do it with Mainframe KIT.Learn on Mainframe Path ▸
Mainframe KIT ● Nothing leaves this tab

LOCKED

LOCKEDCICS RESP CONDITION · CHECKED 2026-11-14
Checked against IBM documentation

CICS raised LOCKED because the record or queue is locked, for example by a retained lock from a failed unit of work.

QUICK ANSWER

CICS raised LOCKED because the record or queue is locked, for example by a retained lock from a failed unit of work.

LIKELY CAUSES, IN THE ORDER OF THIS ENTRY

  1. READ with UPDATE, CONSISTENT or REPEATABLE against a record that has a retained lock.
  2. 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.

CHECKED 14 Nov 2026 IBM: READ | CICS Transaction Server for z/OS 6.x · WRITEQ TD | CICS Transaction Server for z/OS 6.x · EXEC interface block (EIB) fields | CICS Transaction Server for z/OS 6.x

MOST LIKELY

READ with UPDATE, CONSISTENT or REPEATABLE against a record that has a retained lock.

FIRST CHECK

Investigate and resolve the retained lock on the record, for example from a failed unit of work.

TRY IT ▸

Site search

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

  1. Investigate and resolve the retained lock on the record, for example from a failed unit of work.
  2. If you want the transaction to wait, specify WAIT(YES) and WAITACTION(QUEUE) in the TDQUEUE resource definition.
  3. Handle LOCKED with RESP to avoid the AEX8 abend.