Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IMS DC - DB2

Status
Not open for further replies.

rejip

Programmer
Aug 7, 2002
3
IN
We have an IMS DC screen which access DB2 database. The screen allows the user to insert new data to the database. Suppose while updating the database some error occurs. How will we rollback to the last committed state ?.

Please reply
 
Rejip,

When an update error or abend occurs, the unit of work is not complete, so IMS would issue a ROLB. Otherwise, you can check for any invalid SQLCODES and issue an implicit CALL CBLTDLI USING ROLB,IO-PCB to rollback the changes.

-PK.

I.T.Analyst
Tata Consultancy Services
 
Rejip,

When an Database update error occurs, Check for the SQLCodes and your application program should have a code issuing a ROLB which will roll back the changes.

Naveen
Kanbay Software

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top