How to restore a SMS data set as a non-SMS data set to a non-SMS managed volume ?

Document ID : KB000012671
Last Modified Date : 14/02/2018
Show Technical Document Details
Question:

How to restore a SMS data set as a non-SMS data set onto a non-SMS managed volume ?

Answer:

Restore the data set with sysparm SMSALLOCN and NEWNAME=nonsms.dsname,VOL=nonsms in the RESTORE command to a non-SMS managed volume. 

Sample JCL:

//STEP01 EXEC RESTORE 

//SYSPARMS DD * 

SYSPARMSS 

SMSALLOCN 

//SYSIN DD * 

RESTORE DSN=ABC.SMS.#1,VOL=NSMS01,NEWNAME=ABC.XXX.#1

/* 

 

Additional Information:

Note:

If the original data set name is no longer treated as SMS by ACS, a RESTORE DSN=dsname without NEWNAME and VOLUME parameter will try to restore the data set to the original SMS-managed volume and the allocation will fail an SVC 99 error S99ERRCD => 9700 and message -

DATA SET ALLOCATION REQUEST FAILED - DATA SET orig.dsn IS NOT ELIGIBLE FOR ALLOCATION ON SMS-MANAGED VOLUME smsvol  

In this rare case, you do not need the NEWNAME parameter, as the original data set name is no longer treated as SMS by ACS.

That means for the above sample - 

RESTORE DSN=ABC.XXX.#1,VOL=NSMS01

will work and restore the data set as non-SMS on the non-sms managed volume NSMS01.