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 to extend the expiry date of the dataset( ps file)

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: how to extend the expiry date of the dataset( ps file)
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: 7913
Location: Bellevue, IA

PostPosted: Sat Dec 17, 2011 2:13 am    Post subject:
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

Senior Member


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

PostPosted: Sat Dec 17, 2011 2:22 am    Post subject: Reply to: how to extend the expiry date of the dataset( ps f
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: 1738
Location: Bloomington, IL

PostPosted: Sat Dec 17, 2011 2:23 am    Post subject:
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    Post subject: Reply to: how to extend the expiry date of the dataset( ps f
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: 7913
Location: Bellevue, IA

PostPosted: Sat Dec 17, 2011 2:29 am    Post subject:
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    Post subject: Reply to: how to extend the expiry date of the dataset( ps f
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: 1738
Location: Bloomington, IL

PostPosted: Sat Dec 17, 2011 2:54 am    Post subject: Re: Reply to: how to extend the expiry date of the dataset(
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: 8593
Location: Back in jolly old England

PostPosted: Sat Dec 17, 2011 1:15 pm    Post subject:
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    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 Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm


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