Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Urgent Help required on ROLLBACK/COMMIT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
Author Message
vvl_2020

New User


Joined: 26 Dec 2007
Posts: 1
Location: Pune

PostPosted: Fri Jul 03, 2009 1:20 pm    Post subject: Urgent Help required on ROLLBACK/COMMIT
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
References
Unlocked: Fri Jul 03, 2009 1:23 pm by enrico-sorichetti
dbzTHEdinosauer

Senior Member


Joined: 20 Oct 2006
Posts: 3385
Location: germany

PostPosted: Fri Jul 03, 2009 4:25 pm    Post subject:
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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1