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 

File Deadlock

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware
View previous topic :: View next topic  
Author Message
Catherine
Beginner


Joined: 30 Aug 2006
Posts: 32
Topics: 15
Location: Chennai

PostPosted: Thu Mar 26, 2009 7:11 am    Post subject: File Deadlock Reply with quote

There were 2 transactions T1, T2 corresponding to a Single Program P which were trying to WRITE to the File F1
( T1 , T2 are multiple transaction running on a single program )

The Program P actually performs the following - READ is issued to the file first and then a WRITE after

T1 & T2 encountered a deadlock with each other while WRITE to the File F1

Let me know what are the options to remove this deadlock while writing to file
Will deadlock occur only while performing specific type of operations on a File? like my case READ and then WRITE?
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Thu Mar 26, 2009 10:04 am    Post subject: Reply with quote

Catherine,

Since this is a CICS forum , I am assuming that you are writting to a vsam cluster. Read up on the

SHAREOPTIONS(crossregion[ crosssystem]]1 3)

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


Joined: 30 Aug 2006
Posts: 32
Topics: 15
Location: Chennai

PostPosted: Fri Mar 27, 2009 3:02 am    Post subject: Reply with quote

Thanks Kolusu

My VSAM File is defined to have a SHARE OPTION ( 2 3)
T1 & T2 transactions belong to the same CICS region
Other SHARE OPT 3, 4 are not recommended as per our standards

This means that there can be multiple reads made by users concurrently
but for WRITE only one transaction can do it

The transaction takes an exclusive lock during the WRITE
When T1 & T2 tried to take exclusive Lock during the Write process they encountered the deadlock. Correct me if Im wrong

1) When encountering a deadlock with a VSAM File, Will not one of the transactions abend or return with a invalid CICS response?
My transactions looked to indefinitely wait for each other until we killed one of the transactions T2 after 6 minutes

2) Since Changing SHAREROPT is not possible due to standards ( 3, 4 NOT RECOMMENDED ) . Please advise
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware 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