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

When checkpoint logic should be used?


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

New User


Joined: 17 Feb 2009
Posts: 32
Location: Bangalore

PostPosted: Wed Jul 15, 2009 11:31 pm
Reply with quote

Hi,

I have coded a batch program which reads records from a table in a cursor. It will process around 2000 records a day. Program doesn't read records from a file. So should i use checkpoint logic in my program or can i use a commit after each record is processed.

Will committing after each record will affect performance? Or do we have any specific scenarios to go for checkpoint logic? Any disadvantages in using chekpoint logic?

Can anyone suggest on this.
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: Thu Jul 16, 2009 1:12 am
Reply with quote

Hello,

Suggest you consider using no commit/checkpoint. If you do, then you need to consider how you will handle a restart.

If you just let the process run from start to finish, these considerations go away.
Back to top
View user's profile Send private message
Sriram K

New User


Joined: 17 Feb 2009
Posts: 32
Location: Bangalore

PostPosted: Thu Jul 16, 2009 8:50 am
Reply with quote

Thanks for your suggestion
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 Finding faulty logic Subscript out of... COBOL Programming 5
This topic is locked: you cannot edit posts or make replies. Need assistance in job scheduling logic. Mainframe Interview Questions 2
No new posts Rexx Logic error while adding seperat... CLIST & REXX 3
No new posts PL/1 Callback address logic in z/OS C... PL/I & Assembler 1
No new posts Sync logic between VSAM files and DB2... COBOL Programming 9
Search our Forums:

Back to Top