Managing the state of each unit of work
The CICS recovery manager maintains, for each UOW in a CICS® region, a record of the changes of state that occur during its lifetime.
Typical events that cause state changes include:
- Creation of the UOW, with a unique identifier
- Premature termination of the UOW because of transaction failure
- Receipt of a syncpoint request
- Entry into the indoubt period during two-phase commit processing
- Notification that the resource is not available, requiring temporary suspension (shunting) of the UOW
- Notification that the resource is available, enabling retry of shunted UOWs
- Notification that a connection is reestablished, and can deliver a commit or rollback (backout) decision
- Syncpoint rollback
- Normal termination of the UOW
The identity of a UOW and its state are owned by the CICS recovery manager, and are recorded in storage and on the system log. The system log records are used by the CICS recovery manager during emergency restart to reconstruct the state of the UOWs in progress at the time of the earlier system failure.
The execution of a UOW can be distributed over more than one CICS system in a network of communicating systems.
The CICS recovery manager supports SPI commands that provide information about UOWs.