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

Urgent Help required on ROLLBACK/COMMIT


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

New User


Joined: 26 Dec 2007
Posts: 1
Location: Pune

PostPosted: Fri Jul 03, 2009 1:20 pm
Reply with quote

Hi All,

Suppose program A is calling program B for some data. Both programs use different tables on different TABLESPACEs.
Program B is doing some database updates and hence requires COMMIT and/or ROLLBACK for its own tables.
But whenever program B is issuing COMMIT/ROLLBACK all the cursors from calling program ‘A’ are also getting closed.

In the cursor definition using WITH HOLD can be helpful when using COMMIT command. WITH HOLD option keeps the cursors open even after COMMIT command.

But the ROLLBACK command closes all the OPEN cursors.

Can anybody suggest some solutions on how both programs can be kept independent with respect to COMMIT and ROLLBACK?
Also feel free to contact me, if you need any clarification on the issue.

Thanks
Vaidyanath
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Jul 03, 2009 4:25 pm
Reply with quote

yeah, make them two different tasks, so that they each have their own Unit of Work.
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 -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Urgent MF opening for TCS India Mainframe Jobs 0
No new posts Urgent requirement for MF (Exp - 4 to... Mainframe Jobs 0
No new posts Required Date Format in Include Sort ... DFSORT/ICETOOL 6
No new posts filter COMMIT/ROLLBACK statements DFSORT/ICETOOL 13
No new posts COMPUSET/XICS z/os document required All Other Mainframe Topics 1
Search our Forums:

Back to Top