Restore a DSN for a specific date/time
search cancel

Restore a DSN for a specific date/time

book

Article ID: 113728

calendar_today

Updated On:

Products

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

Issue/Introduction

How can we create based on Disk FILES RESTORE order for a specific data set at a specific time?

Resolution

The best way is to run a LISTD to populate your database using this SYSIN:
LISTD DSN=/,DUP, FIELDS=(ARCDT,ATIME,VOLNO,ARKEY,DSNAM)
Then from this output using a Rexx or whatever generate based on the specific request the RESTORE command with such SYSIN:
RESTORE $AUTORES,DSN=YOURDSN, TIMEDATE=hhmmdate

Optionally you can rename the restored data set using such SYSIN:
RESTORE $AUTORES,DSN=YOURDSN, TIMEDATE=hhmmdate,NEWNAME=Userid.RESTORE.TESTxxxx