IBM Support

Resolving ALLOCATE waits in CICS by finding tasks that own links to remote regions

Question & Answer


Question

The Dispatacher domain in my CICS dump shows tasks waiting on resource ALLOCATE. This means tasks are waiting for a link to another region. How can I tell which tasks currently own the links to this region?

Answer

In the Dispatcher domain, note the SYSID that the tasks need links to. The SYSID is the 4-character Resource_Name shown in the Dispatcher Tasks Summary.

For instance, if you see ALLOCATE FOR1, then FOR1 is the SYSID of the system or region.

Format the terminal control blocks with VERBX DFHPDxxx 'TCP=2' (where xxx is your release level of CICS like 690 for CICS TS 5.2).

Do a FIND command for TCTSE.xxxx where xxxx is the system you identified, like TCTSE.FOR1. This should get you to the TCT system entry for this SYSID.

The AID/receive/send TCTTEs for each remote system are formatted following the TCTSE. The AID control blocks, when there are any, represent tasks waiting on links. To get past them, just do a search on TCTTE. The receive TCTTEs will be formatted first (and they are never allocated to a task).

The send TCTTEs follow the receive TCTTEs. Check each send TCTTE +x'14' for a non-zero value (4 bytes). When there is non-zeroes in the send TCTTE +x'14', that is the task number of the owner of that link (ignore the character 'C' at the end).

For example, here is the beginning of a send TCTTE with non-zeroes at +x'14':

alt text

So task# 12345 is the owner of this link. You can then search on the task number in Dispatcher domain (VERBX DFHPDxxx 'DS=1') to find out what the task holding the link is waiting for. You can also determine the associated transaction IDs for these tasks by formatting the Kernel domain (VERBX DFHPDxxx 'KE=1') and searching on each of the task #'s.

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSGMGV","label":"CICS Transaction Server"},"Platform":[{"code":"PF035","label":"z\/OS"}],"Component":"MRO","Version":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Product Synonym

CICS/TS CICSTS CICS TS CICS Transaction Server

Document Information

Modified date:
16 December 2014

UID

dwa1167604