Delete an ARCIVEd or MIGRATed DSN Before Allocation

Document ID : KB000049899
Last Modified Date : 14/02/2018
Show Technical Document Details

Introduction:

If an allocation is for the same DSN as an Archived/Migrated data set, then a delay would result while that data set is restored. This ASR logic would avoid that delay.

Instructions:

DELETE NOSCRATCH (DELNOS) support is available in the PREALLOC Environment so that the catalog entry for an Archived or Migrated data set will be deleted without triggering either Auto Restore or RECALL of the data set.

For data sets that have been Archived by CA Disk, only the catalog entry will be deleted.

For data sets that have been migrated by DFSMShsm, an HDELETE request will be issued that will delete the migrated data set itself as well as the catalog entry.

The HDELETE request will delete any migrated data set whose name is the same one as the new data set being allocated.

An example of the ASR rules to perform this function:

/* ---------------------------------------------------------------- */ 
/*       PREALLOC  ENVIRONMENT                                      */ 
/* ---------------------------------------------------------------- */ 
IF &VAMENVIR = 'PREALLOC'  THEN                                        
  DO                                                                   
    IF &DISPN  = 'CATLG'  AND  &ARCIVED  = 'Y'  THEN  /* FOR CA-DISK */
      DO                                                               
        WRITE 'DSN = &DSN IS ARCIVED - ATTEMPTING DELETE NOSCRATCH'    
        SET &DELNOS = 'Y'                                              
        IF  &DNOSRC =  0  THEN                                         
          DO                                                           
            WRITE 'DELETE OF ARCIVED &DSN WAS SUCCESSFUL'              
          END                                                          
        IF &DNOSRC > 0  THEN                                           
          DO                                                           
            WRITE 'DELETE OF ARCIVED &DSN WAS NOT SUCCESSFUL'          
          END                                                          
      END                                                              
    EXIT CODE(0)                                                       
  END                                                                  
/* ---------------------------------------------------------------- */


Additional Information:

If you are using DFSMShsm, then change "&ARCIVED" to "&MIGRATED" in the ASR.

DELNOS support uses the following system parameters:

  • PLSARCVL - Specify the archive pseudo volser used by CA Disk.
  • PLSHSMVL - Specify the migrate pseudo volser used by DFSMShsm.

SNC2 and DELNOS support, as of May 2016, can not do the following:

  • SNC2/D processing fails to scratch unexpired datasets, both SMS and Non-SMS.
  • DELNOS support fails for unexpired datasets. 

An Apar is available so the unexpired data sets can be processed by DELNOS.  Contact CA Technical Support for the Apar or PTF for Problem 3545.

If you have any questions, please call CA Allocate Technical Support.