Two phase commit is to maintain integrity of data across 2 systems.
Example: The situation is common in banking: an amount is subtracted from one account and added to another. The two actions must either both commit or both rollback at the end of the unit of work.
DB2 and IMS, and DB2 and CICS, jointly implement a two-phase commit process.You can update an IMS database and a DB2 table in the same unit of work. If system or communication failure occurs between committing the work on IMS and on DB2, then the two programs restore the two systems to a consistent point when activity resumes.
hai. a two phase commit is the case encountered in a cics+db2 or cics+ims programs. whenever there is any updation in the table, cics first commits the changes through issueing a commit statement. then a commit is issued by db2. this process is called a two phase commit. hope that this helps........