View previous topic :: View next topic |
Author |
Message |
mainhead Beginner
Joined: 07 Feb 2006 Posts: 26 Topics: 11
|
Posted: Wed Feb 15, 2006 8:58 am Post subject: Job abend with online |
|
|
Hi All,
I am using Telon Cobol + Db2 + Ims dc programe online system (24 hrs) . My job job abends with -911 00C90088
,which is current unit of work has been rolled back due
to dead lock or time out . After some time restarting the job on the failed step it complets suucesful .
From Dba view "It is because of running run incompatible on-line transactions and batch programs at the same time ".
Can i overcome this job abend by fixing programs .
Also from the job abend step it comes from batch program , found from the tool
Could you please advice on this .
Thanks |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Wed Feb 15, 2006 9:16 am Post subject: |
|
|
mainhead,
Check for sqlcode of -911 or -913 and delay the program execuetion and re try the sql once again.
Most shops have standard routines to encounter the deadlock situtations
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
Bithead Advanced

Joined: 03 Jan 2003 Posts: 550 Topics: 23 Location: Michigan, USA
|
Posted: Wed Feb 15, 2006 9:19 am Post subject: |
|
|
mainhead,
Quote: |
It is because of running run incompatible on-line transactions and batch programs at the same time
|
It is a common problem in 24x7 shops.
Quote: |
Can i overcome this job abend by fixing programs
|
No, but can can reduce the frequency at which it happens. If your transaction is doing a lot of work, try to split it up. Check that the batch program has frequent checkpoint or commit logic. That way, the locks will be held for a shorter amount of time so the transaction will not time out. |
|
Back to top |
|
 |
mainhead Beginner
Joined: 07 Feb 2006 Posts: 26 Topics: 11
|
Posted: Wed Feb 15, 2006 10:34 am Post subject: Job abend with online |
|
|
Checking for sql code already in place ,
For example
This happens
1 >> when insert query
2 >> Checking db2 status (sql )
iam concerend of job abend , All the above logics are already in place ,
To run job at different time is not possible has its affects other Production job .
Your advice or any example would be great !! |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Wed Feb 15, 2006 10:39 am Post subject: |
|
|
Quote: |
iam concerend of job abend , All the above logics are already in place ,
|
If the Logic is in place how did the abend happen? If you are checking for -911 and -913 , and performing a delay then your job will NOT abend
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
mainhead Beginner
Joined: 07 Feb 2006 Posts: 26 Topics: 11
|
Posted: Wed Feb 15, 2006 10:55 am Post subject: |
|
|
Kolusu Performing delay Means ?? are you saying that to run production job at different time than usual time |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
mainhead Beginner
Joined: 07 Feb 2006 Posts: 26 Topics: 11
|
Posted: Wed Feb 15, 2006 11:35 am Post subject: |
|
|
Kolusu Sorry to come again , I have seen your code , but i dont know where to include this , Iam using Telon cobol Db2 Ims dc Programs Could you please guide me |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Wed Feb 15, 2006 12:43 pm Post subject: |
|
|
Quote: |
Kolusu Sorry to come again , I have seen your code , but i dont know where to include this , Iam using Telon cobol Db2 Ims dc Programs Could you please guide me
|
*Sigh* I am sorry . I am not going to code the pgm for you. On second thoughts the code is self explanatory.
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
mainhead Beginner
Joined: 07 Feb 2006 Posts: 26 Topics: 11
|
Posted: Wed Feb 15, 2006 2:02 pm Post subject: |
|
|
Kolusu , Thanks for your information !!, iam not asking you to code also i know its self explanotory , I want to know wheather this code is to be included in same cobol program or to keep seperate code by calling my sub program !!!!!!.
Listen iam beginner !!! in few years i will help others like you .
Many Thanks for your information ... |
|
Back to top |
|
 |
Bithead Advanced

Joined: 03 Jan 2003 Posts: 550 Topics: 23 Location: Michigan, USA
|
Posted: Wed Feb 15, 2006 2:14 pm Post subject: |
|
|
Just remember that if you are in a deadlock, introducing a delay into your online program will not fix the problem. |
|
Back to top |
|
 |
Manas Biswal Intermediate

Joined: 29 Nov 2002 Posts: 382 Topics: 27 Location: Chennai, India
|
Posted: Thu Feb 16, 2006 9:42 am Post subject: |
|
|
mainhead,
Have a look at the following link -
http://mvsforums.com/helpboards/viewtopic.php?t=5542&highlight=911
Deadlocks are best left for DB2 to handle and you should not/may not be able to always handle them.
Regards,
Manas _________________ There is no path to peace. Peace is the path.
- Mahatma Gandhi (1869-1948) |
|
Back to top |
|
 |
|
|