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

If Deadlock, how to find the programs using the resources


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
venkataramanak

New User


Joined: 27 Nov 2005
Posts: 4

PostPosted: Mon Nov 28, 2005 11:37 am
Reply with quote

Hi frens,
If deadlock occurs in your program, how come you know which program or user trying to access the same resources which is requested by you

Regards,
venkat
Back to top
View user's profile Send private message
Hames

New User


Joined: 03 Oct 2005
Posts: 49

PostPosted: Mon Nov 28, 2005 12:10 pm
Reply with quote

Hi Venkataramana,

(i) You have to find the TABLE name from the job listing.

(ii) Note down the Job run time. Find in the same time any other job is running.

(iii) Now you can check jobs from step (ii) for using the TABLE from step(i).

Now you have identified the TABLE name and Job name which causes the deadlock.

For solution: You have to check its every day run. If its giving deadlock on every day, you have to change the second job run time after the completion on first job.

If you need further information let me know!!!
Back to top
View user's profile Send private message
paulstephen

New User


Joined: 20 Oct 2005
Posts: 20
Location: Chennai

PostPosted: Mon Nov 28, 2005 2:48 pm
Reply with quote

Go to DB2MON in ur TSO session.
In that u will clearly be able to see job name, user id, querry etc...
Back to top
View user's profile Send private message
Hames

New User


Joined: 03 Oct 2005
Posts: 49

PostPosted: Mon Nov 28, 2005 3:27 pm
Reply with quote

Hi Paul,

How you'll go to DB2MON.

Can you give me the steps.
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 -> DB2

 


Similar Topics
Topic Forum Replies
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Fetch data from programs execute (dat... DB2 3
No new posts Passing Parameters to Programs Invoke... PL/I & Assembler 5
No new posts Find the size of a PS file before rea... COBOL Programming 13
No new posts Finding Assembler programs PL/I & Assembler 5
Search our Forums:

Back to Top