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 

Job abend with online

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


Joined: 07 Feb 2006
Posts: 26
Topics: 11

PostPosted: Wed Feb 15, 2006 8:58 am    Post subject: Job abend with online Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Wed Feb 15, 2006 9:16 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Bithead
Advanced


Joined: 03 Jan 2003
Posts: 550
Topics: 23
Location: Michigan, USA

PostPosted: Wed Feb 15, 2006 9:19 am    Post subject: Reply with quote

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
View user's profile Send private message
mainhead
Beginner


Joined: 07 Feb 2006
Posts: 26
Topics: 11

PostPosted: Wed Feb 15, 2006 10:34 am    Post subject: Job abend with online Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Wed Feb 15, 2006 10:39 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
mainhead
Beginner


Joined: 07 Feb 2006
Posts: 26
Topics: 11

PostPosted: Wed Feb 15, 2006 10:55 am    Post subject: Reply with quote

Kolusu Performing delay Means ?? are you saying that to run production job at different time than usual time
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Wed Feb 15, 2006 11:17 am    Post subject: Reply with quote

Quote:

Kolusu Performing delay Means ?? are you saying that to run production job at different time than usual time


read this topic

http://www.mvsforums.com/helpboards/viewtopic.php?t=2008&highlight=delay

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mainhead
Beginner


Joined: 07 Feb 2006
Posts: 26
Topics: 11

PostPosted: Wed Feb 15, 2006 11:35 am    Post subject: Reply with 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
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Wed Feb 15, 2006 12:43 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
mainhead
Beginner


Joined: 07 Feb 2006
Posts: 26
Topics: 11

PostPosted: Wed Feb 15, 2006 2:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
Bithead
Advanced


Joined: 03 Jan 2003
Posts: 550
Topics: 23
Location: Michigan, USA

PostPosted: Wed Feb 15, 2006 2:14 pm    Post subject: Reply with quote

Just remember that if you are in a deadlock, introducing a delay into your online program will not fix the problem.
Back to top
View user's profile Send private message
Manas Biswal
Intermediate


Joined: 29 Nov 2002
Posts: 382
Topics: 27
Location: Chennai, India

PostPosted: Thu Feb 16, 2006 9:42 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Yahoo Messenger
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