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

How to Update a Dataclass of a dataset


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
karthickpearl

New User


Joined: 13 Apr 2010
Posts: 35
Location: Chennai

PostPosted: Mon Jan 06, 2014 12:43 pm
Reply with quote

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

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Mon Jan 06, 2014 1:09 pm
Reply with quote

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

New User


Joined: 13 Apr 2010
Posts: 35
Location: Chennai

PostPosted: Mon Jan 06, 2014 2:48 pm
Reply with quote

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

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Mon Jan 06, 2014 3:27 pm
Reply with quote

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

New User


Joined: 13 Apr 2010
Posts: 35
Location: Chennai

PostPosted: Mon Jan 06, 2014 4:15 pm
Reply with quote

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

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Jan 06, 2014 7:44 pm
Reply with quote

Hello,

You might copy these temp datasets to a dataset with the proper dataclas. Then delete the temp datasets.
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: Mon Jan 06, 2014 8:58 pm
Reply with quote

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

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Thu Jan 09, 2014 9:34 am
Reply with quote

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

New User


Joined: 13 Apr 2010
Posts: 35
Location: Chennai

PostPosted: Thu Jan 09, 2014 4:59 pm
Reply with quote

@ 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
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
Search our Forums:

Back to Top