Sample JCL for volume-level backup using FMS VRECOVER
search cancel

Sample JCL for volume-level backup using FMS VRECOVER

book

Article ID: 435354

calendar_today

Updated On:

Products

Disk Backup and Restore - MVS

Issue/Introduction

On our production LPAR, we carry out VBACKUP of OFFLINE volumes (Volumes located on our test partition).
We'd like to restore a volume. Is there a sample JCL for VRECOVER?

Resolution

The following FMS VRECOVER can be used for a volume-level recovery function

//jobname JOB (acct,info),etc.
//         EXEC FMS
//SYSIN     DD  *
SCAN DSNINDEX         
SELECT VOLUMES=source-vol 
VRECOVER TOVOL=target-vol,
DSNENQ=NONE,RESERVE=NO


Test the actual run in simulation mode by adding SIMULATE in the SYSIN as follows.

SET MODE=SIMULATE
SCAN DSNINDEX         
SELECT VOLUMES=source-vol 
VRECOVER TOVOL=target-vol,
DSNENQ=NONE,RESERVE=NO

 

The parms descriptions is below:
DSNENQ=
The DSNENQ= parameter has a default value of EXC, which causes Disk to issue an exclusive enqueue for every data set on the volume. If you specify a value of NONE, no enqueues are issued for the data sets. A value of SHR causes shared enqueues to be issued.

RESERVE=
The RESERVE= parameter defaults to YES, and issues a hardware reserve and VTOC enqueue. If you specify a value of NO, no hardware reserve or VTOC enqueue are issued.

Note: Using the defaults for the DSNENQ= and RESERVE= parameters prevent any updates to the volume during VRECOVER processing.

Additional Information

Please refer to the tech doc VRECOVER function for more details.