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
 

 

Restart logic in DB2 program.

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

New User


Joined: 03 Mar 2006
Posts: 48
Location: Chennai

PostPosted: Fri Sep 21, 2007 10:21 pm    Post subject: Restart logic in DB2 program.
Reply with quote

Hi all,

How do i restart a DB2 program from the record that caused the abend rather than from the first record?

What are the special definitions or DB2 statement that needs to be included in the program to handle this restart logic?

Thanks,
RZ061M
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: Fri Sep 21, 2007 10:36 pm    Post subject:
Reply with quote

Hello,

Unless you checkpoint after every insert/update/delete, you cannot.

I'd suggest you talk with youjr DBA(s) and find out how checkpoint/restart is supposed to work on your system/application. Each developer should not create their own version of checkpoint/restart.
Back to top
View user's profile Send private message
rz061m

New User


Joined: 03 Mar 2006
Posts: 48
Location: Chennai

PostPosted: Fri Sep 21, 2007 10:54 pm    Post subject:
Reply with quote

Thanks for the info.

thanks,
RZ061M
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: Fri Sep 21, 2007 11:24 pm    Post subject:
Reply with quote

You're welcome icon_smile.gif
Back to top
View user's profile Send private message
anv2005

New User


Joined: 14 Jul 2005
Posts: 44
Location: US

PostPosted: Fri Sep 21, 2007 11:24 pm    Post subject:
Reply with quote

Does your program access any other data besides DB2?
Does your program process sequential or VSAM files?
Does your program rely on working-storage contents?

If the answer is yes, then you need to consider to keep these "other" application resources in sync with DB2 data as well.

This synchronization processing includes COMMITs, ROLLBACKs and application restarts.

It is not simple to synchronize DB2 and non-DB2 resources across COMMITs, ROLLBACKs and RESTART.

Regards,
Alex.
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 IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
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 Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm


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