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

DB2 Commit with QUICKSTART


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

New User


Joined: 20 Apr 2005
Posts: 8

PostPosted: Wed Jan 31, 2007 8:22 pm
Reply with quote

I have a COBOL program that inserts rows to a table. My program does not have a COMMIT statement in it. The program is restartable using QUICKSTART. I noticed that when the program abends, it does not rollback all the way to the beginning of the program. I can see the records in the table that it was inserting in to. Does it have to do anything with QUICKSTART?

One more question. Do I need to take a checkpoint after each INSERT to the table?
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: Wed Jan 31, 2007 11:49 pm
Reply with quote

Hello,

I'm not familiar with Quickstart but it may have an option that causes a checkpoint after each iteration. Check your settings and defaults for parameters not set.

The only time you want to checkpoint after each insert is when you want NO data to be backed out. This is usually not desired. Checkpoints are best used at the end of a logical-unit-of-work(LUW) or when the program ends. Part of the decision of when to checkpoint is how you want any restart capability to 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 filter COMMIT/ROLLBACK statements DFSORT/ICETOOL 13
No new posts Commit limit for Delete query through... DB2 10
No new posts Commit a DB2 Table on Unix Server and... DB2 3
No new posts Need information on DB2 COMMIT DB2 9
No new posts DB2 Commit thru Xpediter DB2 4
Search our Forums:

Back to Top