Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

CICS Deadlock

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
atulbaviskar

New User


Joined: 08 May 2008
Posts: 8
Location: Mumbai, India

PostPosted: Mon Sep 08, 2008 11:17 am    Post subject: CICS Deadlock
Reply with quote

Hello Frends,

Tran A and Tran B are the two ONLINE transactions and resource are VSAM Files.
Tran A owns Resource 1 for which Tran B is waiting and
Tran B owns Resource 2 for which Tran A is waiting.
So, a deadlock occurs.
I tried to resolve it using Enq/Deq using the following seq in my program
Enq
Read
Update/Rewrite
Deq

But it does not solve my purpose. The other way I tried is to Force kill one of the transaction using FC in CICS environment, but i believe this is temporray solution.
Please suggest.

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

Srinivasa Rao

New User


Joined: 21 Jun 2005
Posts: 75

PostPosted: Mon Sep 08, 2008 1:56 pm    Post subject:
Reply with quote

Hi Atul,

While defining your transactions use the parameter DTIMOUT. If your transactions are waiting for more than specified time one of the transaction will abend.

If your find out other solution let us know.
Back to top
View user's profile Send private message
Earl Haigh

Active User


Joined: 25 Jul 2006
Posts: 475

PostPosted: Mon Sep 08, 2008 6:33 pm    Post subject:
Reply with quote

You need to ENQ/DEQ logic in both programs (Tran1 and Tran2) ?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7996
Location: Bellevue, IA

PostPosted: Mon Sep 08, 2008 6:34 pm    Post subject:
Reply with quote

The classic solution is to ensure both programs access the resources in the same sequence, which prevents deadlocks from occurring.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts Asynchronous CICS Processing Question moezbud CICS 0 Mon Mar 06, 2017 6:13 pm
No new posts CICS Question RE: Browse, Readnext an... moezbud CICS 7 Sun Mar 05, 2017 5:45 am
No new posts how to send just 10 rows in a CICS sc... Megha Gupta CICS 5 Thu Feb 23, 2017 6:57 pm
No new posts Mainframe Interview Questions CICS,CO... akshathan Mainframe Interview Questions 6 Thu Feb 09, 2017 6:38 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us