Joined: 08 May 2008 Posts: 1 Location: Fairfax, VA
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.
While defining your transactions use the parameter DTIMOUT. If your transactions are waiting for more than specified time one of the transaction will abend.