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 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: 1445
Location: Azeroth

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: 1445
Location: Azeroth

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: 7904
Location: Bellevue, IA

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 -913/-911 Deadlock during UPDATE stat... NoSleep319 DB2 5 Fri Nov 18, 2016 12:37 am
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm
No new posts Updating Cursor row withour using FOR... chandan.inst DB2 15 Tue Nov 08, 2016 11:17 am
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm


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