+

Search Tips | Advanced Search

Recovering units of work manually

We can manually recover units of work CICS, IMS, RRS, or other queue managers in a queue sharing group. We can use queue manager commands to display the status of the units of work associated with each connection to the queue manager.

This topic contains information about the following subjects:


Display connections and threads

We can use the DISPLAY CONN command to get information about connections to queue managers and their associated units of work. We can display active units of work to see what is currently happening, or to see what needs to be terminated to allow the queue manager to shut down, and we can display unresolved units of work to help with recovery.

    Active units of work
    To display only active units of work, use
    DISPLAY CONN(*) WHERE(UOWSTATE EQ ACTIVE)
    

    Unresolved units of work
    An unresolved unit of work, also known as an "in-doubt thread", is one that is in the second pass of the two-phase commit operation. Resources are held in IBM MQ on its behalf. To display unresolved units of work, use
    DISPLAY CONN(*) WHERE(UOWSTATE EQ UNRESOLVED)
    

    External intervention is needed to resolve the status of unresolved units of work. This might only involve starting the recovery coordinator ( CICS, IMS, or RRS) or might involve more, as described in the following sections.

Parent topic: Recovery and restart on z/OS

Last updated: 2020-10-04