Previous Topic: Example 6: Sequential Copy of the IndexNext Topic: Example 8a: Tape Map/Restore (Tape Map)


Example 7: Restore

In this example, the database is restored from the most recent backup, as indicated in the recovery data set maintained by SARSTC. The old database is named VIEW.SYSTEM1 and a new database named VIEW.NEWSYS1 is created. The following job recovers the database:

//RESTORE  JOB ACCOUNT,PROGRAMMER
//STEP1    EXEC PGM=SARDBASE
//STEPLIB  DD  DSN=CAI.CVDELOAD,DISP=SHR
//SYSPRINT DD  SYSOUT=*
//SARRECV  DD  DSN=VIEW.SARRECV,DISP=SHR
//SYSIN    DD  *
NAME VIEW.NEWSYS1
ADDDS UNIT=3390 VOL=SAR001 CYL=85 INDEX
ADDDS UNIT=3390 VOL=SAR001 CYL=600 DATA
RESTORE VIEW.SYSTEM1
/*