MainframeKit

LOCKED

DFHRESP(LOCKED) = 100CICS RESP CONDITION

The resource is locked because a unit of work that failed is still in doubt.

MOST LIKELY

A unit of work failed in doubt and still holds the lock.

FIRST CHECK

Ask the system programmer to resolve the in-doubt unit of work.

TRY IT ▸

MainframeKit assistant

What it means

LOCKED means CICS is holding a lock left by a unit of work that failed while in doubt. On WRITEQ TD, IBM says it happens when the queue is defined with WAIT(YES) and WAITACTION(REJECT).

The lock stays until the in-doubt unit of work is resolved.

Typical causes

  • A unit of work failed in doubt and still holds the lock.
  • A lost connection to a coordinating system during sync point.

How to fix it

  1. Ask the system programmer to resolve the in-doubt unit of work.
  2. Check the connection to the coordinating system.
  3. Code RESP (and RESP2) on the command and test the value with DFHRESP.