Restore a SMS data set as a non-SMS data set.
search cancel

Restore a SMS data set as a non-SMS data set.

book

Article ID: 12671

calendar_today

Updated On:

Products

Disk Backup and Restore - MVS DISK BACKUP AND RESTORE- ADD-ON OPTIO DISK BACKUP AND RESTORE

Issue/Introduction

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

Resolution

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.