Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Commit the updates done only by stored procedure

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
Vijay Vemuri

New User


Joined: 25 Feb 2009
Posts: 2
Location: Bangalore

PostPosted: Wed Feb 25, 2009 9:41 pm    Post subject: Commit the updates done only by stored procedure
Reply with quote

Hi,

I have a cobol-db2 program calling a cobol-db2 stored procedure.
Is there any way to commit the updates done only by stored procedure.

I need to know that is there a possibility of autonomous commit in DB2?


Please provide your ideas..

Thanks in advance,
Vijay,
IBM India
Back to top
View user's profile Send private message

ashimer

Active Member


Joined: 13 Feb 2004
Posts: 551
Location: Bangalore

PostPosted: Wed Feb 25, 2009 9:56 pm    Post subject:
Reply with quote

If your main program updates data and then calls sub routine which commits ; all the changes will be committed ....because the entire process is a single unit of work ...
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Thu Feb 26, 2009 1:57 am    Post subject:
Reply with quote

Hello,

Suggest you consider a different design approach that will not allow/require interleaving multiple uits of work. . .

If you explain what the process needs to do, someone may have a suggestion.
Back to top
View user's profile Send private message
Vijay Vemuri

New User


Joined: 25 Feb 2009
Posts: 2
Location: Bangalore

PostPosted: Thu Feb 26, 2009 12:31 pm    Post subject: Reply to: Commit the updates done only by stored procedure
Reply with quote

My requirement is

need to store the displays of stored procedure in DB2 table instead of WLM log.

Can any one provide suggesions how to do this?

Thanks,
Vijay.
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Thu Feb 26, 2009 8:55 pm    Post subject:
Reply with quote

Hello,

Quote:
need to store the displays of stored procedure in DB2 table instead of WLM log.
I believe this needs some clarification.

If the sp inserts some rows in a table and does not issue a commit what will be the problem having the unit-of-work controlled by the main program? When the main program issues a commit, all uncommitted actions will be committed. Similarly, if the main program rolls back the work, the entire unit of work will be rolled back.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 2 Tue Dec 06, 2016 4:38 am
No new posts Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm
No new posts Access SQLCA fields inside a stored p... gangapd DB2 4 Thu Oct 27, 2016 10:20 am
No new posts Is possible to call subprogram from c... cmsmoon COBOL Programming 3 Fri Aug 05, 2016 6:46 pm
This topic is locked: you cannot edit posts or make replies. Stored procedure on Federated thru DB2 arif677 DB2 6 Tue May 31, 2016 11:48 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us