MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

restarting a job

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
venus
Beginner


Joined: 02 Jun 2006
Posts: 16
Topics: 11

PostPosted: Wed Jun 07, 2006 10:59 pm    Post subject: restarting a job Reply with quote

Hi,
i have a cobol/db2 job which is abebding after updating 10000 rows.
How can i restart the job , so that updates will continue from 10001 row
on wards. Please tell me necessary step that need to be coded on JCL
and on sql statements
Back to top
View user's profile Send private message
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Wed Jun 07, 2006 11:51 pm    Post subject: Reply with quote

Hai,

If you have already updated 1000 rows and the job has failed , then code in your COBOL-DB2 program to update for the rows greater than > 1000 and simply run the job once again which will update the rows from 1001 onwards till the end.

For example if you are trying to update the department field for employees serial wise then this query would do:
Code:
EXEC SQL UPDATE TABLENAME SET DEPTNAME = 'ABCD' WHERE EMPNO > '1000' END-EXEC.

_________________
Shekar
Grow Technically
Back to top
View user's profile Send private message
schintala
Beginner


Joined: 18 May 2005
Posts: 108
Topics: 31
Location: USA

PostPosted: Thu Jun 08, 2006 3:08 pm    Post subject: Reply with quote

There are different ways to restart a COBOL DB2 batch job. Does your shop have the BMC tools?
Back to top
View user's profile Send private message
venus
Beginner


Joined: 02 Jun 2006
Posts: 16
Topics: 11

PostPosted: Thu Jun 08, 2006 10:57 pm    Post subject: Reply with quote

iam new to this kind of programing . can you explain me different ways
to restart cobol/db2 job
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Fri Jun 09, 2006 8:31 am    Post subject: Reply with quote

Quote:

iam new to this kind of programing . can you explain me different ways
to restart cobol/db2 job

venus,

Please search before posting. Check this link which explains about checkpoint restart logic

http://mvsforums.com/helpboards/viewtopic.php?t=1318&highlight=checkpoint

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group