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 commit fail

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-29-03, 14:41
ppdeepa ppdeepa is offline
Registered User
 
Join Date: Oct 2003
Posts: 3
db2 commit fail

I am working on db2 v7 on MVS OS390.
Does the COMMIT for DB2 automatically ROLLBACK incase the COMMIT is not successful?
Reply With Quote
  #2 (permalink)  
Old 10-29-03, 14:43
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
I would check the SQL return code of the commit, and issue a rollback if not zero.
Reply With Quote
  #3 (permalink)  
Old 10-29-03, 15:09
ppdeepa ppdeepa is offline
Registered User
 
Join Date: Oct 2003
Posts: 3
Quote:
Originally posted by Marcus_A
I would check the SQL return code of the commit, and issue a rollback if not zero.

Yes i intend to do the same! but my question is still unanswered!
Reply With Quote
  #4 (permalink)  
Old 10-29-03, 15:24
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
I don't think there is an answer that would cover every situation that DB2 might encounter. Sometimes yes, and maybe sometimes no.

Also depends on who the coordinator is (TSO, CICS, IMS, etc).
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