If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > DB2 Rollback

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-23-10, 18:50
jdelmar jdelmar is offline
Registered User
 
Join Date: Apr 2010
Posts: 2
DB2 Rollback

Is it possible to do a Rollback in a program CICS DB2 ??

Regards

Jorge
Reply With Quote
  #2 (permalink)  
Old 04-23-10, 22:18
dav1mo dav1mo is offline
Registered User
 
Join Date: Dec 2007
Location: Richmond, VA
Posts: 782
yes it is. do it all the time. you even wrote the correct syntax in other thread that you tried to hijack.
Dave
Reply With Quote
  #3 (permalink)  
Old 04-24-10, 23:59
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Maybe I gave the wrong answer in the other thread [quoted below]. Back in the days when I used DB2 and CICS together, this is how we had to do it:

Quote:
Normally, when using CICS and DB2, there is a two-phase commit and CICS is the coordinator. Therefor SQL Commits and Rollbacks are not allowed.

Instead, execute a CICS SYNCPOINT ROLLBACK command and it will rollback any uncommitted SQL.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On