Restoring Selected Librarian Members
search cancel

Restoring Selected Librarian Members

book

Article ID: 54487

calendar_today

Updated On:

Products

Librarian

Issue/Introduction

How can I restore one or more members from a backup tape to an AFO Master file?

 

Resolution

To restore one or more members from a backup tape to an AFO master file, use the utility -COPY statement.

The utility copy is a two step process:

(Step 1)

Execute the utility. Use the following statement to invoke the utility:

-OPT UTILITY

Use -COPY statements to name the members to copy (one statement for each member).

(Step 2)

Execute Librarian to update the master file using the sequential data set created in Step 1 as input.
The following sample utility execution restores selected members.

//jobname JOB 70000,PGMR,CLASS=1
// EXEC PGM=librarian,PARM='NRJS,NJTA'
//SYSPRINT DD SYSOUT=A
//SYSAF01 DD UNIT=SYSDA,SPACE=(TRK,(10,5))
//SYSAF02 DD UNIT=SYSDA,SPACE=(TRK,(10,5))
//MASTIN DD UNIT=TAPE,VOL=SER=volser,
// DSN=sending.backup.tape,DISP=OLD
//OSJOB DD DSN=&&TEMP,UNIT=SYSDA,SPACE=(TRK,(5,10)),
// DISP=(,PASS)
//SYSIN DD *
-OPT UTILITY
-COPY member-name-1
END
/*
// EXEC PGM=librarian,PARM='NRJS,NJTA' //SYSPRINT DD SYSOUT=A //MASTER DD DSN=receiving.master.file,DISP=SHR //SYSIN DD DSN=&&TEMP,DISP=OLD //OSJOB DD DUMMY