Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How can you define a VSAM file as read-only using IDCAMS?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
tarakanta
Warnings : 1

New User


Joined: 30 Jan 2007
Posts: 10
Location: Hyderabad

PostPosted: Thu Apr 23, 2009 10:07 am    Post subject: How can you define a VSAM file as read-only using IDCAMS?
Reply with quote

Hi all,

i have a question:

Is it possible to create VSAM file as read only using IDCAMS utility?

Thx
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Apr 23, 2009 11:22 am    Post subject:
Reply with quote

No, but you could use the security product installed at the shop to restrict its use to read only.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Apr 23, 2009 1:16 pm    Post subject:
Reply with quote

if you could (create read only vsam using idcams), how would you ever load it?
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Thu Apr 23, 2009 7:26 pm    Post subject: Reply to: How can you define a VSAM file as read-only using
Reply with quote

Kinda the reverse of something that was proposed when i was in a meeting some years ago and the overly excitable were going on and on about how very special "their" data was and people should not be reading it.

After a while of this, my good bud (who was also the project architect) suggested this particular data could be placed in a "write only" file and there would be no more concern.

Took the worry-worts 10 minutes to realize they'd been had. . . icon_rolleyes.gif
Back to top
View user's profile Send private message
tarakanta
Warnings : 1

New User


Joined: 30 Jan 2007
Posts: 10
Location: Hyderabad

PostPosted: Fri Apr 24, 2009 12:49 pm    Post subject:
Reply with quote

Thanks for the reply.

But i got some threads which tells if we use INHIBIT in an ALTER command then the data set becomes read only.

Again i found that these options can be applied to DATA and INDEX only and we cant use it on Clusters.

There exist security products for making the file as Read only.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7931
Location: Bellevue, IA

PostPosted: Fri Apr 24, 2009 3:20 pm    Post subject:
Reply with quote

Tarakanta: make up your mind about what you want. Your original question was to CREATE a VSAM file read-only. This is a DEFINE statement in IDCAMS. Now you're talking about using ALTER INHIBIT to make the file read-only. ALTER cannot be used to create a file -- so either you've changed your requirement, or your original post was wrong.
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1239
Location: Richfield, MN, USA

PostPosted: Sat Apr 25, 2009 9:16 am    Post subject: Re: Reply to: How can you define a VSAM file as read-only us
Reply with quote

dick scherrer wrote:
After a while of this, my good bud (who was also the project architect) suggested this particular data could be placed in a "write only" file and there would be no more concern.

Reminds me of 2 types of memory: ROM (read only memory) and WOM (write only memory). icon_lol.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Sat Apr 25, 2009 12:09 pm    Post subject: Reply to: How can you define a VSAM file as read-only using
Reply with quote

From any side You look at it it' s the worst approach,
( even if the alter command provides some facilities )

what' s wrong in using a security product ?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts Underlying DB2 VSAM LDS - SMF recording vasanthz All Other Mainframe Topics 6 Thu Jan 05, 2017 4:20 am
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us