How to Restore a DSN for a specific date/time from the FILES information?

Document ID : KB000113728
Last Modified Date : 13/09/2018
Show Technical Document Details
Introduction:
How can we create based on Ca Disk FILES RESTORE order for a specific data set at a specific time?
Instructions:
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=21082017018

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