z/OS DFSMSrmm Managing and Using Removable Media
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Example 5: Retaining data sets created within a time period

z/OS DFSMSrmm Managing and Using Removable Media
SC23-6873-00

Retain data sets that match the data set name mask that have been created within the last 10 days. The data sets must also be cataloged and have been referenced within the last 2 days.
RMM ADDVRS DSN('TEST.AND')   -            /* Data set VRS                  */
           LASTREFERENCEDAYS -            /* Retain based on last referenced*/
           COUNT(2)          -            /* Number of days                */
           ANDVRS(DAYS10)                 /* Chain using AND VRS           */
RMM ADDVRS NAME(DAYS10)      -            /* NAME VRS                      */
           DAYS              -            /* Retain by elapsed days        */
           COUNT(10)         -            /* Number of days                */
           ANDVRS(WC)                     /* Chain using AND VRS           */
RMM ADDVRS NAME(WC)          -            /* NAME VRS                      */
           WHILECATALOG                   /* Retain while cataloged        */
Note: In the example, the ANDVRS operand is used which means that all the retention criteria met for the data set to be retained. Also the LOCATION(HOME) is not specified because it is the default and need not be specified.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014