Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to Update a Dataclass of a dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: How to Update a Dataclass of a dataset
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: 1521
Location: Chennai

PostPosted: Mon Jan 06, 2014 1:09 pm    Post subject:
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    Post subject: Reply to: How to Update a Dataclass of a dataset
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: 1521
Location: Chennai

PostPosted: Mon Jan 06, 2014 3:27 pm    Post subject:
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    Post subject: Reply to: How to Update a Dataclass of a dataset
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

Site Director


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

PostPosted: Mon Jan 06, 2014 7:44 pm    Post subject:
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: 8154
Location: East Dubuque, Illinois, USA

PostPosted: Mon Jan 06, 2014 8:58 pm    Post subject:
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: 1703
Location: Australia

PostPosted: Thu Jan 09, 2014 9:34 am    Post subject:
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    Post subject: Reply to: How to Update a Dataclass of a dataset
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Mainframe dataset split purushottam DFSORT/ICETOOL 13 Tue Aug 29, 2017 12:28 pm
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm
No new posts Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts Browse dataset cvnlynn CLIST & REXX 4 Tue Jul 18, 2017 3:52 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us