IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Preventing users from opening Common Lib in edit mode


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Hari Hara Krishnan N

New User


Joined: 16 Mar 2007
Posts: 5
Location: Chennai

PostPosted: Tue Mar 20, 2007 11:40 am
Reply with quote

How to prevent the users from opening the Common librabies such as the Copy libraries in the edit mode?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Mar 20, 2007 1:32 pm
Reply with quote

Ask the security people to make it READ only except for authorised users.
Back to top
View user's profile Send private message
nevilh

Active User


Joined: 01 Sep 2006
Posts: 262

PostPosted: Tue Mar 20, 2007 6:07 pm
Reply with quote

If you have read access to a dataset (RACF ) you can still EDIT it. You just can't save the changes
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Mar 20, 2007 6:18 pm
Reply with quote

When you open a dataset in EDIT it will be opened in UPDATE.

If you do not have update authority the access request would be denied.
Back to top
View user's profile Send private message
nevilh

Active User


Joined: 01 Sep 2006
Posts: 262

PostPosted: Tue Mar 20, 2007 6:50 pm
Reply with quote

I hate to disagree but you can edit a dataset if you only have READ access you just can't change it . Try it
Back to top
View user's profile Send private message
nevilh

Active User


Joined: 01 Sep 2006
Posts: 262

PostPosted: Tue Mar 20, 2007 6:56 pm
Reply with quote

One word of qualification this is for PDS datasets only PDSE's are handled differently
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Mar 20, 2007 7:12 pm
Reply with quote

Damn, the way RACF has the different sections grouped, I can't add extra profiles and change the access to test this.

Until such time as I can, I shall have to let it rest.
Back to top
View user's profile Send private message
nevilh

Active User


Joined: 01 Sep 2006
Posts: 262

PostPosted: Tue Mar 20, 2007 7:22 pm
Reply with quote

To save you testing the following is a quote from the IBM lab.

When editing a PDS under ISPF, ISPF issues an
OPEN for input. If the user issues the SAVE command (or END after
making changes), ISPF CLOSES the data set, and issues an OPEN for
UPDATE. At that point, a user with READ access will fail with a 913.
ISPF opens the file for output because a PDSE may be multiply open for output. SO ISPF has to open the data set for output before displaying the data.
Back to top
View user's profile Send private message
nevilh

Active User


Joined: 01 Sep 2006
Posts: 262

PostPosted: Tue Mar 20, 2007 7:26 pm
Reply with quote

Sorry Hari we forgot about your original question . The answer would appear to be that if the user has read access to the library and it is a PDS you cannot stop him editing it. You could convert the dataset to a PDSE and then with access Read the user would no longer be able to EDIT it
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Mar 20, 2007 7:33 pm
Reply with quote

Nice one Nevil
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Mar 20, 2007 7:57 pm
Reply with quote

Hello,

I may be missing something (and i'm sure someone will set me straight if i am icon_smile.gif ), but why is there a concern about editing a member if the changes cannot be saved? If someone has read access, they can easily copy the member to their own pds and "really" edit the menber.

Is the goal to prevent any editing on the member or just to protect the member in the "Common Library"?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts HILITE on Browse mode? TSO/ISPF 2
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts IBM OnDemand Folders displaying to al... IBM Tools 6
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts Query on edit primary command CLIST & REXX 5
Search our Forums:

Back to Top