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 

DISP=SHR information required !

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
ajaysb
Beginner


Joined: 20 May 2004
Posts: 2
Topics: 1

PostPosted: Sat Dec 30, 2006 1:07 pm    Post subject: DISP=SHR information required ! Reply with quote

Hi all,

Just wanted to clarify a small doubt.

DISP=SHR indicates that its open to read and update from multiple jobs at the same time. (correct me if I am wrong).

So whats gonna happen if two or more pgms(say A and B) open the file in i-o for updation and again two or pgms(say C and D) open the file in input just for reading; all at the same time.



Would there be any contention in this case or is it that one or more pgms will wait for the updating pgms to complete ? Which pgms will abend or which pgms will wait ?



Thanks for your answers. Need a little bit of clarity for solving some production issues.


Cheers
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: Sat Dec 30, 2006 2:13 pm    Post subject: Reply with quote

ajaysb,

Please search before posting. check this link

http://www.mvsforums.com/helpboards/viewtopic.php?t=1202&highlight=disp=shr

Hope this helps...

Cheers

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


Joined: 20 May 2004
Posts: 2
Topics: 1

PostPosted: Sun Dec 31, 2006 4:42 am    Post subject: Reply with quote

Hi Kolusu,
I should have mentioned this before. I was looking for this information with regards to VSAM datasets and not sequential ones.

Have rephrased my questions a bit. Let me know if somebdy can answer this...

Ques 1) In case of Defining an alternate index, does the system take exclusive access of the cluster and in case it does, will another program using the same vsam cluster in disp=shr abend ?.
One such scenario happened in production at my shop and the other program abended.

Ques 2) In another hypothetical situation, if a vsam file is defined with a SHAREOPTION of 2, and two pgms open the file in i-o mode for updations with disp=shr, will one of the pgms fail ?

Cheers
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 -> Job Control Language(JCL) 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