Can I have a sample of a CA Faver restore process with a pattern mask and a rename function?
search cancel

Can I have a sample of a CA Faver restore process with a pattern mask and a rename function?

book

Article ID: 13839

calendar_today

Updated On:

Products

FAVER VSAM Data Protection for z/OS

Issue/Introduction

Would like some sample RESTORE CA Faver syntax statements that can be utilized as a model.



Can I have a sample of a CA Faver restore process with a pattern mask and a rename function?

Environment

z/OS

Resolution

Sample to restore and rename with a pattern mask:

//SYSIN    DD *                                           
RESTORE                                                   
 CLUSTER                                                  
  CL=+                                          *AMS  -   
   CLUSTER(NAME (ASMISM.+++X.+))                      -   
           DATA(NAME (ASMISM.+++X.+))                 -   
           INDEX(NAME (ASMISM.+++X.+))                    
  AIX=+                                         *AMS  -   
   AIX    (NAME(ASMISM.+++X.+))                       -   
           DATA(NAME (ASMISM.+++X.+))                 -   
           INDEX(NAME (ASMISM.+++X.+))                    
  PATH=+                                        *AMS  -   
   PATH   (NAME(ASMISM.+++X.+)                        -   
         PENT(ASMISM.FVRX.PATH)                       -   
         UPD)                                           

This is a more simple sample to rename a cluster and its components:

RESTORE ADDHLQ
   CLUSTER
    CL=ASM.BLAJO02.READONLY *AMS -
      CLUSTER(NAME(MFLVOL.FAVER45.BLAJO02.READONLY)) -
      DATA (NAME()) -
      INDEX (NAME())

This sample will restore some files from an export and place a new HLQ (high Level Qualifier) on the clusters restored and EXCLUDE the pattern masked HLQ noted in the last statement.

RESTORE
  CLUSTER
    CL=+ *AMS -
     CLUSTER(NAME (PUBLIC.+)) -
      DATA(NAME (PUBLIC.+)) -
     INDEX(NAME (PUBLIC.+))
 EXCLUDE
  CL=BLAJO02.+  

Additional Information

This capability, along with other samples, are documented in the CA Faver User Guide