IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

CICS syncpoint and DB2 commit


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ignich7

New User


Joined: 02 Nov 2005
Posts: 66

PostPosted: Tue Dec 11, 2007 1:38 pm
Reply with quote

If I issue DB2 commit within the LUW, after some time the transaction got ABEND before the completion of LUW. In this case, will CICS rollback the changes made to DB2 tables or it will only recover the CICS-recoverable resources?

Gnana Nicholas I
Back to top
View user's profile Send private message
TG Murphy

Active User


Joined: 23 Mar 2007
Posts: 148
Location: Ottawa Canada

PostPosted: Fri Dec 14, 2007 1:32 am
Reply with quote

You say that you issued the DB2 commit. Question: Did this commit finish successfully? Or did the commit itself fail?

In any case, any data that is committed is .... well .... committed. It will not be rolled back. Rollback only rolls back data that is uncommitted.

By the way, we are talking about a CICS transaction here, right? So don't be using the DB2 commit command. Instead you need to use the CICS SYNCPOINT command. SYNCPOINT itself will talk to DB2 to ensure the DB2 commit happens but you need to leave that business to SYNCPOINT.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Dec 14, 2007 2:52 am
Reply with quote

Hello,

Quote:
If I issue DB2 commit within the LUW, after some time the transaction got ABEND before the completion of LUW.
FWIW, on all of the database engines i've supported, a commit ends a database LUW and another is started.

As was suggested, in your situation do not issue the database commit within the CICS transaction.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts Calling an Open C library function in... CICS 1
No new posts How to 'Ping' a CICS region in JCL CICS 2
No new posts Parallelization in CICS to reduce res... CICS 4
No new posts How to avoid duplicating a CICS Web S... CICS 0
Search our Forums:

Back to Top