FDR RESTORE Statement


RESTORE statement syntax

RESTORE


,CONFMESS=NO|YES


,CPYVOLID=NO|YES



,ENQ=OFF|RESERVE


,MAXERR=20|nnnn



,PROT=NONE


,SMSPROT=ALL|NONE


,VOLRESET=NO|YES

RESTORE statement

The RESTORE statement requests a full-volume restore operation. It is optional (see EXEC Statement for specifying operands via the PARM= operand), but if present must be the first and only statement input.

These operands control the restore of each specified backup data set (TAPEx DD statement) to its output DASD volume (DISKx DD statement). The backup must be a full-volume backup created by FDR, ABR, or SAR.

An FDR RESTORE operation can restore from a backup of a DASD volume to a larger capacity volume of the same DASD type (for example, 3390-3 to 3390-9). If you want to restore from a larger DASD (such as 3390-9) to a smaller device (3390-3) it is usually more convenient to use COMPAKTOR (see COMPAKTOR-CPK-DASD-Volume-Reorganization) or FDRDSF (see FDRDSF-Data-Set-Functions). However, if you prefer to use RESTORE TYPE=FDR and no data sets are allocated on tracks beyond the end of the smaller DASD volume, you can do so by specifying PROT=NONE.

Warning

It is best that the target volume be placed offline to all systems other than the system where the restore is to be run. If you do not, the other systems may access the original VTOC of the restored volume and access or delete the wrong data.

RESTORE statement operands

TYPE=FDR

Specifies that a full volume restore is to be performed. It must be specified on the RESTORE statement.

CONFMESS=

NO

Begin the restore immediately. This is recommended at disaster recovery sites.

YES

The operator must reply to a console WTOR for message FDRW01 before the restore begins.

Default: YES.

CPYVOLID=

NO

The volume serial of the output DASD is retained.

YES

Volume serial of the output DASD is replaced with the original volume serial of the DASD that was dumped. If another online volume has the same serial, the restored volume is placed offline at the end of the restore.

See VOLRESET= for details on its interaction with CPYVOLID=.

Default: CYPVOLID=NO, unless the volume being restored was SMS-managed, when CPYVOLID=YES is forced.

EMSG=

Used when the FDR e-mail notification facility has been invoked by including an FDREMAIL DD statement in the FDR execution JCL.

OK

E-mail notifications are sent from successful FDR operations as well as failures.

Default: E-mail notifications are sent only for FDR failures.

ENQ=

Specifies whether a SYSVTOC enqueue should be done on the VTOC of each DASD volume during the restore. 

OFF

The VTOC is not enqueued or reserved during the restore.

RESERVE

A hardware RESERVE is issued on each DASD volume during its restore. On the system where FDR is executing, an enqueue for (SYSVTOC,volser) is done, but other systems are unable to read or write any data on the volume.

Default: ENQ=RESERVE

MAXERR=

nnnn

Specifies the number of tape or DASD errors (1 to 9999) that, if reached, cause the operation to abend. Each error is indicated by a message and possible mini-dump.

Default: 20.

MAXTASKS=

n

Specifies the maximum number of volumes that are restored concurrently in this step. The value may be from 1 to 9 but the actual number of concurrent restores are no greater than the number of TAPEx DD statements in this step's JCL.

Default: MAXTASKS=1; however, if MAXTASKS= is omitted all restore messages are printed on SYSPRINT, if MAXTASKS=n is specified (even if “n” is 1), messages are directed to the SYSPRINx DD statement corresponding to the TAPEx DD statement associated with the restore.

PROT=

NONE

FDR can only restore to volumes of the same type as the dumped DASD and normally requires that the output DASD have the same or larger capacity (number of cylinders) as the input DASD, for example, 3390-3 to 3390-3 or 3390-9. PROT=NONE allows FDR to restore to a smaller DASD of the same type, for example, 3390-9 to 3390-3. Do not specify PROT=NONE unless you need this function since it also suppresses other validity checks.

Default: All validity checks are done.

Warning

Since FDR always places data tracks in their original locations, restore to a smaller DASD fails if the larger DASD had data sets allocated beyond the bounds of the smaller DASD. Use COMPAKTOR to convert such DASD volumes.

SMSPROT=

ALL

Enforces several rules when SMS-managed volumes are involved. Backups of SMS-managed volumes can only be restored to SMS-managed volumes, and non SMS-managed volumes only to non SMS-managed volumes. CPYVOLID=YES is forced when an SMS-managed volume is restored.

NONE

Allows the restore of SMS-managed volumes to non SMS-managed volumes, and vice versa. Also allows the restore of SMS-managed volumes to new volume serial numbers if CPYVOLID=NO is specified.

Default: SMSPROT=ALL

Warning

SMSPROT=NONE is usually used at a disaster recovery site where a reIPL of z/OS is done after the restores, to place all volumes in the proper SMS status. For more information on restoring and moving SMS-managed volumes, see System-Managed-Storage-SMS .

Important

SMSPROT=NONE is recommended when doing restores at a disaster recovery site.

VOLRESET=

YES

If CPYVOLID=NO or PARM=N is specified or defaulted, and the volume serial of the output DASD is different from that of the original DASD on the backup, the volume serials that are part of the data set names of the VTOC Index (SYS1.VTOCIX.volser), the VVDS (SYS1.VVDS.Vvolser) and the ABR Model DSCB (usually FDRABR.Vvolser) are checked to see if they match the input volume serial (the volume backed up). If so, they are renamed to match the volume serial number of the output DASD. Also, the DSCB field DS1DSSN (Data Set Serial Number, usually the volume serial number of the first or only volume of the data set) for every data set on the volume is changed to the new volume serial if the existing value matched the original volume serial.
Regardless of the value of CPYVOLID=, the ABR Model DSCB on the restored volume (if it exists) sets the cycle number to 63 to force the next ABR backup to be a full-volume backup and increment the generation number.

NO

Do not do any of the processing listed above for VOLRESET=YES. All data sets are restored with the names they have on the backup and the ABR Model DSCB is restored unmodified.

Default: YES

Important

  • wIf you intend to restore the backup to a new permanent volume serial, use CPYVOLID=NO with VOLRESET=YES. Note that data sets on the volume are not recataloged to the new volume serial, but you can catalog them using the IDCAMS “DEFINE” command (note that VSAM must be recataloged with DEFINE CLUSTER RECATALOG and SMS-managed, non-VSAM data sets must be recataloged using DEFINE NONVSAM RECATALOG); see the IBM IDCAMS manual for syntax details.
  • wIf you intend to restore the backup to a temporary volume serial but later relabel it back to the original volume serial number (from the backup), use CPYVOLID=NO with VOLRESET=NO.


Tip

Use CPYVOLID=NO,VOLRESET=YES when you intend to retain the new volume serial. Use CPYVOLID=NO,VOLRESET=NO when you intend to relabel the volume back to its original volume serial number.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*