View previous topic :: View next topic |
Author |
Message |
venus Beginner
Joined: 02 Jun 2006 Posts: 16 Topics: 11
|
Posted: Wed Jun 07, 2006 10:59 pm Post subject: restarting a job |
|
|
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 |
|
|
shekar123 Advanced
Joined: 22 Jul 2005 Posts: 528 Topics: 90 Location: Bangalore India
|
Posted: Wed Jun 07, 2006 11:51 pm Post subject: |
|
|
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 |
|
|
schintala Beginner
Joined: 18 May 2005 Posts: 108 Topics: 31 Location: USA
|
Posted: Thu Jun 08, 2006 3:08 pm Post subject: |
|
|
There are different ways to restart a COBOL DB2 batch job. Does your shop have the BMC tools? |
|
Back to top |
|
|
venus Beginner
Joined: 02 Jun 2006 Posts: 16 Topics: 11
|
Posted: Thu Jun 08, 2006 10:57 pm Post subject: |
|
|
iam new to this kind of programing . can you explain me different ways
to restart cobol/db2 job |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
|
|