View previous topic :: View next topic
|
Author |
Message |
karthickpearl
New User
Joined: 13 Apr 2010 Posts: 35 Location: Chennai
|
|
|
|
Hi Friends,
I've been trying to find a way to update a dataclass of a PS but in vain.
I wanted to write a REXX to take a PS filename as input and update the dataclass of that file to a specific value.
Please can some one help? |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
Hi Karthick,
Why do you want to do it?
I think DATACLAS is used by SMS only during allocation of a dataset.
Even if you change the DATACLAS attribute of an existing dataset, the new DATACLAS does not change the allocation attribute of the existing dataset.
Regards, |
|
Back to top |
|
|
karthickpearl
New User
Joined: 13 Apr 2010 Posts: 35 Location: Chennai
|
|
|
|
Hi Vasanth,
I get new datasets created with dataclass as TEMP (which has a lesser retention period). Hence I wanted to change the dataclass of those to STANDARD which has a retention period that I want it.
The creation of these datasets is not in my control. But I need these files with the dataclass that I intend for further processing.
As of now, we just copy this to a new dataset and meanwhile change the dataclass during the allocation. This is the purpose of my need. |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
Karthick,
I will upfront say that 'I dont know how to change DATACLAS'
I think retention of a dataset is done by SMS using MGMTCLAS parameter and not DATACLAS. (I could be wrong here).
Is the MGMTCLAS also TEMP for your dataset? |
|
Back to top |
|
|
karthickpearl
New User
Joined: 13 Apr 2010 Posts: 35 Location: Chennai
|
|
|
|
Hi Vasanth,
Management class is not Temp.
I get that these are managed by SMS, but I'm looking for a way to manipulate them from REXX code.
For example LISTDSI fteches the attributes of a Dataset to standard varibales, Similarly I wanted a possiblity to update them. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
You might copy these temp datasets to a dataset with the proper dataclas. Then delete the temp datasets. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Talk to your site support group. Someone in that group wrote the ACS routines, which control setting data class, management class, storage class, and so forth. They can help you identify what needs to be done to achieve your goal. |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi
if you have the authority to change management, dataclass etc, you can use IDCAMS to change it. eg
Code: |
ALTER 'dsname' MANAGEMENTCLASS(newclass)
|
Personally I would talk to your support group as suggested by Robert.
Gerry |
|
Back to top |
|
|
karthickpearl
New User
Joined: 13 Apr 2010 Posts: 35 Location: Chennai
|
|
|
|
@ Dick
I got this idea of copying the dataset to a new dataset, delete the old file and then rename it. But I used to get files that are very big in size sometimes.
@Robert
Since this is an automation for a very small team out of a very bigger group, I don't think so our support group can change things that is already optimised. I will have to live with what ever is already there.
@Gerry
This is an option I didn't think off. Will try this out and let you know.
Thanks guys for all your valuable suggestions. |
|
Back to top |
|
|
|