View previous topic :: View next topic
|
Author |
Message |
Ashish Gautam
New User
Joined: 06 May 2010 Posts: 2 Location: Hyderabad India
|
|
|
|
I would like to know how I can set the Expiration date and the password, while allocation of dataset using JCL (Not ISPF menu options)
Kindly provide the Code segment. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
Contact your site support group. Many sites prohibit use of passwords and expiration dates on data sets (except for tape expiration dates -- and since you did not specify you are talking about tapes, we won't assume that you are). If you attempt to do something prohibited at your site, the consequences are yours. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello and welcome to the forum,
Most organizations do not allow passwords on mainframe datasets. . .
Why do you believe you need more than the standard system security. . .? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
And if your storage team are anywhere near half decent then code whatever you like but the ACS routines / TMS rules will override anything that you try to change.
The password - this stops me having to share my secret code with anyone else, just in case I do something better / illegal and then no one else will be able to know how I did it.
Also, password protected datasets are usually picked up on by the ILM software, such as HSM, and what I usually do with password protected datasets is to zap the VTOC to remove the password protection, delete the dataset and any associated backups, and just sit back and laugh when the ex owner complains. |
|
Back to top |
|
|
Pete Wilson
Active Member
Joined: 31 Dec 2009 Posts: 582 Location: London
|
|
|
|
EXPDT/RETPD is usally prevented by the SMS Mgmtclas settings (to prevent bad practice), but can be specified on JCL, although there are 'special' values used by tape management subsystems so you should check with your Storage people before using them to avoid 'disappointment'.
// EDPDT=yyyy/nnnn
or...
// RETPD=nnnn
or they can be ALTER'd using IDCAMS
If a file is worth protecting then RACF or equivalent should be used unless you're doing something 'illicit'? |
|
Back to top |
|
|
Ashish Gautam
New User
Joined: 06 May 2010 Posts: 2 Location: Hyderabad India
|
|
|
|
Thank u all........ |
|
Back to top |
|
|
|