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

Restarting job after a updatation of some rows


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

New User


Joined: 26 Jun 2007
Posts: 6
Location: India

PostPosted: Wed Oct 10, 2007 11:00 am
Reply with quote

Hi,
I m currently running a job to update the salary of the employees for 2008 and i have a commit logic for comminting after 1000 rows.now if i have to restart my job which suppose abended after updating 2000 records out of a total of 20k records, i found 2 solutions to it..

a) get the timestamp field added to the salary update table and from the cursor exclude the rows for which salary have been updated for 2008 by checking timestamps.

b)second method was using db2 checkpoints but i dont how to use them in the progam.

Now which of the two solutions should i go for and new ideas are always invited.icon_smile.gif
Also if you have link about how to use db2 checkpoints please provide me so as i cudnt find the same in sql reference and appplication programming guide for db2
Thanx in advance
Back to top
View user's profile Send private message
Prasanthhere

Active User


Joined: 03 Aug 2005
Posts: 306

PostPosted: Wed Oct 10, 2007 2:31 pm
Reply with quote

Hi,

For this you have to include the restart logic with in your program.

Please check this link

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DSNAG0G3/4.4?DT=20010421154551
Back to top
View user's profile Send private message
hemanth.nandas

Active User


Joined: 18 Aug 2007
Posts: 120
Location: India

PostPosted: Wed Oct 10, 2007 5:16 pm
Reply with quote

Hi All,


Quote:
For this you have to include the restart logic with in your program.

Please check this link

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DSNAG0G3/4.4?DT=20010421154551



This link is different requirement than one asking for.

Hi Prashanth, The link you had given here is for STARTING OR RESTARTING DB2 System when system goes down.

But Suny asked for Check Point and Restart Logic. That, we usually adopt in program logic.

Many Application uses this logic with different scenerio.

Hi Suny,

In our application we are calling pgm to do so. In this, we are checking rec-count, based on this we will make the entry in DB2 table(we are using separate table as check_point_table). And hence pgm will refer the same in check_point_table when next time you run the pgm.

But Same can be achieved, If you are running a IMAGE utility for DB2 in your job(I am not sure about it, But it may be CA11 PROC, IF any one knows it please answer for the same).

Thanks & Regards
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 To get the count of rows for every 1 ... DB2 3
No new posts Exclude rows with > than x occurre... DFSORT/ICETOOL 6
No new posts Convert single row multi cols to sing... DFSORT/ICETOOL 6
No new posts Compare latest 2 rows of a table usin... DB2 1
No new posts How to compare two rows of same table DB2 11
Search our Forums:

Back to Top