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

how to extend the expiry date of the dataset( ps file)


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rajrohith

New User


Joined: 15 Apr 2005
Posts: 54
Location: chennai

PostPosted: Sat Dec 17, 2011 1:54 am
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Sat Dec 17, 2011 2:13 am
Reply with quote

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
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Sat Dec 17, 2011 2:22 am
Reply with quote

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
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Sat Dec 17, 2011 2:23 am
Reply with quote

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
View user's profile Send private message
rajrohith

New User


Joined: 15 Apr 2005
Posts: 54
Location: chennai

PostPosted: Sat Dec 17, 2011 2:24 am
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Sat Dec 17, 2011 2:29 am
Reply with quote

Quote:
its all ps file
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
View user's profile Send private message
rajrohith

New User


Joined: 15 Apr 2005
Posts: 54
Location: chennai

PostPosted: Sat Dec 17, 2011 2:32 am
Reply with quote

its n disk only...

currently im testing those dataset... so i want to change the rentention period as wel...


Thanks,
Raj
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Sat Dec 17, 2011 2:54 am
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Sat Dec 17, 2011 1:15 pm
Reply with quote

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
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top