A CICS Transaction with the 2PC Protocol - IBM CICS Interface for Teradata

IBM CICS Interface for Teradata® Reference

Product
IBM CICS Interface for Teradata
Release Number
16.20
Published
October 2018
Language
English (United States)
Last Update
2018-10-10
dita:mapPath
yky1527114222324.ditamap
dita:ditavalPath
Audience_PDF_include.ditaval
dita:id
B035-2448
lifecycle
previous
Product Category
Teradata Tools and Utilities

With the 2PC protocol, a task is one invocation of a CICS transaction, and each task can update multiple database management systems (DBMS’s).

The processing example in the following figure depicts a task. The CICS task establishes sessions on the appropriate DBMSs and issues the updates.

A set of updates, such as Updates 1A, 1B, and 1C in the example below, will take the multiple databases from one state to another (in this case, from the initial state to State 1).

The set of updates is referred to as a logical unit of work. After each logical unit of work is completed, there is a commit or rollback.

If a failure occurs so that a logical unit of work cannot be completed, the logical unit of work becomes a unit of recovery.

The data can be recovered only back to the last completed logical unit of work.

Note that an update within a Teradata session is occasionally referred to as a transaction.

2PC CICS Processing Example
Update 1B Update 1C HB01A011 Update 1A Update 2A Update 3A Update 2B Update 3B Update 2C Update 3C Teradata session DB2 session CICS session Initial State State 1 State 2 State 3