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
- Recovering CICS units of recovery manually
- Recovering IMS units of recovery manually
- Recovering RRS units of recovery manually
- Recovering units of recovery on another queue manager in the queue sharing group
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.
- Recovering CICS units of recovery manually
Use this topic to understand what happens when the CICS adapter restarts, and then explains how to deal with any unresolved units of recovery that arise.- Recovering IMS units of recovery manually
Use this topic to understand what happens when the IMS adapter restarts, and then explains how to deal with any unresolved units of recovery that arise.- Recovering RRS units of recovery manually
Use this topic to understand the how to determine if there are in-doubt RRS units of recovery, and how to manually resolve those units of recovery.- Recovering units of recovery on another queue manager in the queue sharing group
Use this topic to identify, and manually recover units of recovery on other queue managers in a queue sharing group.Parent topic: Recovery and restart on z/OS