View previous topic :: View next topic
|
Author |
Message |
rajrohith
New User
Joined: 15 Apr 2005 Posts: 54 Location: chennai
|
|
|
|
Hi Guys,
I have one requirement... i want to change the expiry date from 2011 to 2035 in so many datasets... nearly 15000...
can anybody say how to achieve this n single shot...
i appreciate your quick reply
Thanks,
Raj |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
You need to talk to your site storage management group. If you are talking about DISK data sets, most sites do not have expiration dates set for them and therefore you would not normally have to do anything. If you are talking about TAPE data sets, whether or not what you want to do is even possible would be a question that can only be answered by your site support group.
And depending upon whether you are talking about virtual or real tapes, what you want to do may not even be reasonable. The rule of thumb I've heard for quite a few years is that physical tapes start to deteriorate if not read in 2 to 5 years. Tapes not read for 24 years almost certainly would not be readable at all, so why do what you ask? |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Quote: |
i want to change the expiry date from |
Use the ALTER command.
Quote: |
how to achieve this n single shot. |
I do not think you can. But you may be able to add 15000 ALTER commands in the SYSIN of an IDCAMS job.
Quote: |
You need to talk to your site storage management group. |
I agree. |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
You can't.
In most (but not all) shops, retention periods and/or expiration dates are assigned via management class. Attempts to sidestep this can result in consequences from your jobs not working to being fired and blacklisted. Even where they are still explicitly assigned in JCL (or TSO ALLOCATE statements), you can't change them once assigned.
Ask your in-house storage management how retention periods and expiration dates are assigned. If (as is likely) it is by management class, ask how to choose an appropriate class. Write a program (Rexx will be easiest if you know it) to generate JCL that uses your shop's sort product to copy the data sets to new ones with the desired expiration date. |
|
Back to top |
|
|
rajrohith
New User
Joined: 15 Apr 2005 Posts: 54 Location: chennai
|
|
|
|
its the production dataset... just i want to change the expiry date in many ... its all ps file.... isit possible n rexx or some other way n single shot
please let me know...
Thanks,
Raj |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
You keep posting this like it matters. It does not matter. What matters is whether the data sets are on disk, virtual tape, or real tape. |
|
Back to top |
|
|
rajrohith
New User
Joined: 15 Apr 2005 Posts: 54 Location: chennai
|
|
|
|
its n disk only...
currently im testing those dataset... so i want to change the rentention period as wel...
Thanks,
Raj |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
rajrohith wrote: |
its n disk only...
currently im testing those dataset... so i want to change the rentention period as wel...
Thanks,
Raj |
So, what did your storage management workgroup say was the appropriate way to assign expiration dates? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Akatsukami has spoken wise words to you, so my advice is to heed them and talk to YOUR storage people.
If your site has been set up correctly then SMS will ignore any user specified retention periods or expiry dates, or may not even permit the attempts to make changes but only flag them to your security / storage groups.
So you may think that you have altered things, but SMS and HSM will just ignore what you think you have achieved and delete them, which leaves you exactly where.
Now follow his excellent advice and go talk to the only people on this planet that can really be of any assistance to you.
YOUR storage management people
It always sets those little alrm bells ringing when someone asks a forum how to bypass the standards and settings in place at the site where they are employed. |
|
Back to top |
|
|
|