Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us