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
 

 

DB2 commit logic

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

New User


Joined: 22 May 2010
Posts: 1
Location: Banglore

PostPosted: Wed May 26, 2010 12:25 pm    Post subject: DB2 commit logic
Reply with quote

Hi,

Can you please tell me how DB2 commit happens in batch and online programs (how it differs in both cases)? Please suggest me an article to learn about commit logic.
I thought of reading more about commit logic, when I came across a situation: Program A calls Program B to insert a row into a table one bye one. Program B inserts one row and goes back to Program A. So when the commit actually happens - 1) when program B return after inserting a single row or 2) when program A returns after entire update process. Both program A and B are batch programs. The forum has a similar post which says option 1 will be true. Please tell if you have any more idea in this.

Thanks,
Krishna
Back to top
View user's profile Send private message

Kalexin

New User


Joined: 26 May 2010
Posts: 2
Location: San Jose, CA

PostPosted: Wed May 26, 2010 1:11 pm    Post subject: Reply to: DB2 commit logic
Reply with quote

http://publib.boulder.ibm.com/infocenter/dzichelp/v2r2/topic/com.ibm.db29.doc.sqlref/db2z_sql_commit.htm

here is a good place to start.
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: Wed May 26, 2010 7:58 pm    Post subject:
Reply with quote

Hello,

Quote:
I thought of reading more about commit logic
Yes, you should.

Quote:
The forum has a similar post which says option 1 will be true. Please tell if you have any more idea in this.
My idea is that you should never simply trust something you read in a forum . . .

COMMIT is rather straight forward. Things not yet committed may be rolled back. Having said that, you now need to read about the various ways COMMIT / ROLLBACK might happen. Running some of your own experiments is also a good way to see these behaviors first-hand.

If you try some experiments and something "strange" happens, post what you did and what happened. Someone will be able to clarify.
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 Need help in building a logic Benchwarmer All Other Mainframe Topics 4 Wed Feb 22, 2017 2:49 am
No new posts Wildcard logic in COBOL dudenithy COBOL Programming 13 Thu Sep 01, 2016 7:36 pm
No new posts Sort Logic to extract data scorp_rahul23 DFSORT/ICETOOL 13 Tue Mar 01, 2016 1:22 am
No new posts Need a logic to validate the data in ... sandeep kumar302 COBOL Programming 17 Mon Feb 01, 2016 3:30 pm
No new posts Tricky sort logic required pgopi92 DFSORT/ICETOOL 3 Mon Jan 25, 2016 3:29 pm


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