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
 

 

How to restart from COBOL program for a particular DB2 reco

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
emonmisra

New User


Joined: 10 Jul 2006
Posts: 7
Location: Bangalore

PostPosted: Tue Sep 04, 2007 1:09 pm    Post subject: How to restart from COBOL program for a particular DB2 reco
Reply with quote

There is a scenario. You're running a job which will update the bulk of records. When you run the job, only 100 records are processed and the job abends. Also you have committed the changes through program using COMMIT.

Now you want to process from the 101st record. How will you put the restart logic through the COBOL program?
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: Tue Sep 04, 2007 8:11 pm    Post subject:
Reply with quote

Hello,

This is not typically a matter to be addressed by/in a single program.

If you decide to actually implement checkpoint/restart, it should at least be done across the application. Many places defne this process to cover everything that runs within a given database environment.

There is no "standard" for providing checkpoint/restart. Each implementation depends on the system/environment and the recoverability requirements.

I'd suggest you first ask you management or database support people if there is already a methodology in place for your system.

If you decide to experiment, make sure that your restart process includes getting all of the reports and any non-database data back in sync. You will want to bypass the already committed database updates, but will need to handle counters, report outputs, etc.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Sep 05, 2007 12:30 pm    Post subject:
Reply with quote

Emon,

Checkpoint and Restart facilities are some of the most important features supported by IMS. This method is used in the IMS programming environment to ensure data integrity. When we issue a checkpoint, it signals the IMS Control environment that the application program wants to commit all changes made to the database. Once an IMS checkpoint is successfully taken, IMS, the application program, the programmer who supports the application, and the end users now have a reference point that assures that in case of a hardware/software abend we can recover the data back to the point where the checkpoint was taken.

But if you need to do this when you are using DB2 as Data Base, one way can be using GSAM files instead of QSAM. I've never implemented this still it should be a starting approach.
Hope this helps.
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
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 COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm


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