Change Data Set SMS Information

Sometimes we come across the need of changing the SMS information of a data set. The question of course is: how can we do it? Well, an easy way is to do it via batch job using the IDCAMS utility and the ALTER command:


//SMSCHG EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
ALTER entryname STORCLAS(new-storclas) -
MGMTCLAS(new-mgmtclas)

 

Example:


//SMSCHG EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
ALTER USER1.JCL.CNTL STORCLAS(SC000001) -
MGMTCLAS(NOMIG)

In the example above, we will change the Management Class (MGMTCLAS) and Storage Class (STORCLAS) of dataset ‘USER1.JCL.CNTL’ to ‘NOMIG’ and ‘SC000001’ respectively.

Alternatively, we can also issue the ALTER instructions as a TSO command:


TSO ALTER USER1.JCL.CNTL STORCLAS(SC000001) MGMTCLAS(NOMIG)

Be the first to comment

Leave a Reply

Your email address will not be published.


*