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 

SHR option

 
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
nadh
Intermediate


Joined: 08 Oct 2004
Posts: 192
Topics: 89

PostPosted: Tue Jul 04, 2006 4:20 am    Post subject: SHR option Reply with quote

Hi,

Even if I give DISP=SHR option to a data set it is allowing to copy data to that dataset i.e. it is allowing to edit. DISP=OLD will give X lock and rewrites the data and DISP=SHR appends the data and DISP=SHR is allowed to read this is what i know sofar. But just executed one jcl which is having DISP=SHR and still it is allowing to copy data to it. Pls. clarify what is DISP=SHR is.

Cheers!!!!
Nadh
Back to top
View user's profile Send private message Send e-mail
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Tue Jul 04, 2006 6:36 am    Post subject: Reply with quote

Nadh,

Please refer this.Hope this helps:


Code:

{DISP=status }
{DISP=([status][,normal-termination-disp][,abnormal-termination-disp])}
DISP= ( [NEW] [,DELETE ] [,DELETE ] )
        [OLD] [,KEEP ] [,KEEP ]
        [SHR] [,PASS ] [,CATLG ]
        [MOD] [,CATLG ] [,UNCATLG]
        [, ] [,UNCATLG]
        [, ]


SHR
Indicates that the data set exists before this step and that other jobs can share
it, that is, use it at the same time. This subparameter can also be coded as
SHARE.

If you specify DISP=SHR for an output tape data set and (1) the data set is not
protected by RACF or a password or (2) the data set has no expiration date,
the system does not verify the data set name in the header label.

_________________
Shekar
Grow Technically
Back to top
View user's profile Send private message
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Wed Jul 05, 2006 9:05 am    Post subject: Reply with quote

DISP=SHR and DISP=OLD only control whether other users may access the file at the same time. Neither one will control update access to the file. You would use your security product for this.
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
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