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

U0777 IMS dead lock


IBM Mainframe Forums -> IMS DB/DC
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Nagendran

New User


Joined: 24 Jan 2007
Posts: 89
Location: USA

PostPosted: Tue Jun 17, 2008 3:20 am
Reply with quote

Hi,

An IMS job got abended with U0777(deadlock)

Could anybody tell me how to view IMS log to identify the reason for deadlock?


thanks,
Nagendran.R
Back to top
View user's profile Send private message
Sinkaravelan S

New User


Joined: 21 Apr 2008
Posts: 27
Location: coimbatore-TN india

PostPosted: Tue Jun 17, 2008 10:39 am
Reply with quote

Nagu,

pls refer this link..

documents.bmc.com/supportu/documents/13/47/41347/41347.pdf

Thanks, icon_smile.gif
Back to top
View user's profile Send private message
udit_adhlakha

New User


Joined: 19 Feb 2008
Posts: 5
Location: India

PostPosted: Tue Jun 17, 2008 10:45 am
Reply with quote

I prepared this doc during my project and this is related to my project. Please see if this comes handy :
Steps to follow while doing RCA for Contention Issues:-

• The job name and ABEND code would be mentioned in JHS. Also we need to know the step which caused the ABEND. This will help us to track the exact position of the ABEND.

• The data for the abend is usually present in JHS or the JHS logs generation dataset - please check where the logs are stored.

• We need to locate the exact position of our abend in JHS/log file. We can search with the job name, ABEND code and/or step name (in which the job abended) in the logs and we would find the contention information there.

• A common form of the contention information mentioned would be like this :

DSNT375I -DB2A PLAN=DDBPGSC0 WITH 985
CORRELATION-ID=0033DDBPGSC0
CONNECTION-ID=IMSJ
LUW-ID=CDN.DHIPA040.C20AFF550A65=134682
THREAD-INFO=J081TCG:*:*:*
IS DEADLOCKED WITH PLAN=DDBCLDV0 WITH
CORRELATION-ID=0041DDBCLDV0
CONNECTION-ID=IMSJ
LUW-ID=CDN.DHIPA040.C20AFF7A93FA=134856
THREAD-INFO=J081TCG:*:*:*
ON MEMBER DB2A

The above means, the job that abended in the step which was executing the program ‘DDBPGSC0’ (this can be verified in the JCL) and it had a contention with the program ‘DDBCLDV0’.

Search for the job that uses the second program and that would be the job, the abended job had a contention with.
Sometimes the job which uses the above mentioned program would also be mentioned. Basically the contention information mentioned in the logs can take many forms but we can find the information in the logs.
Back to top
View user's profile Send private message
Ajay Baghel

Active User


Joined: 25 Apr 2007
Posts: 206
Location: Bangalore

PostPosted: Thu Aug 14, 2008 8:05 pm
Reply with quote

Hi friends,

We are facing U0777 abend frequently during our batch. One job is there that runs for 7-8 hours and it may be the reason for contention with other 10 other jobs that run during this 7-8 hours window since all these jobs use the same database.

Both this job and any of those 10 jobs keep on dying because of this deadlock. Often i don't know which one to restart.

I was wondering, if we could do a quick lookup while fixing the abend to see who is HOLDING the resource and who is WAITING for the resource and what is that type of resource.

Hi Udit,
We are getting U0777 abend but not one containing DEADLOCK keyword.
For eg:
DSN3201I -DB2A ABNORMAL EOT IN PROGRESS FOR 038
USER=GCAXQ CONNECTION-ID=G2P2 CORRELATION-ID-0109TQAAMEE4
JOBNAME=TQAAMEE4 ASID=01C3 TCB=009FF050
IEF450I TQAAMEE4 GO ST3ABAS - ABEND=S000 U0777 REASON=00000000 039

Please help.

Thanks,
Ajay
Back to top
View user's profile Send private message
Ajay Baghel

Active User


Joined: 25 Apr 2007
Posts: 206
Location: Bangalore

PostPosted: Fri Aug 15, 2008 6:12 pm
Reply with quote

No voice heard till now... So quiet. hmmm

I wonder if we just need to keep our fingers crossed and restart any job randomly. Is really there any way to get clear about resolving u0777. icon_cry.gif

Hoping some answers/pointers friends!!

-Ajay
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Aug 15, 2008 7:49 pm
Reply with quote

Hello,

Usually, deadlocks are due to design problems. There is no "magic" to make them go away. It usually takes considerable effort.

One way around the design problems is scheduling.

Another is to significantly reduce the runtimes of the problem job(s) - in your case probably the 7-8 hour job.

Lastly, the most effective but the most work, correct the design to prevent the deadlocks.
Back to top
View user's profile Send private message
Ajay Baghel

Active User


Joined: 25 Apr 2007
Posts: 206
Location: Bangalore

PostPosted: Fri Aug 15, 2008 8:30 pm
Reply with quote

Quote:
Usually, deadlocks are due to design problems. There is no "magic" to make them go away. It usually takes considerable effort.

One way around the design problems is scheduling.


Quote:
Lastly, the most effective but the most work, correct the design to prevent the deadlocks.


You are right Dick. This is obviously a design problem that needs a serious makeover.

But for doing schedule changes, we need to identify correctly the jobs involved in the deadlock at a given moment. How do we do that? That is my question.

While doing google search, i got some information on generating Deadlock reports and DFSERA utilities.

Continuing with my quest gracefully and hopefully ... icon_smile.gif

-Ajay
Back to top
View user's profile Send private message
Ajay Baghel

Active User


Joined: 25 Apr 2007
Posts: 206
Location: Bangalore

PostPosted: Sat Aug 16, 2008 7:45 pm
Reply with quote

Hi Friends,
I have got what i was looking for. We can generate human-readable deadlock reports using DFSERA10 and DFSERA30 utilities.

icon_biggrin.gif

Thanks,
Ajay
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 -> IMS DB/DC

 


Similar Topics
Topic Forum Replies
No new posts Lock Escalation DB2 3
No new posts How to put exclusive lock on a file i... JCL & VSAM 4
No new posts dead lock while updating the DB2 table DB2 7
No new posts Dead lock in DB2 - CICS programs CICS 8
No new posts IRLM Lock Compatibility IMS DB/DC 0
Search our Forums:

Back to Top