You can use the EXPIREBV ABARSVERSIONS command to expire ABR records created during aggregate backup or recovery processing.
The ABARSVERSIONS keyword is mutually exclusive from any data set processing performed during EXPIREBV processing. ABARSVERSIONS is also mutually exclusive with the NONSMSVERSIONS parameter. The STARTKEY and ENDKEY parameters can be used with ABARSVERSIONS, as can OUTDATASET | SYSOUT. DISPLAY and EXECUTE are still required parameters and have the same processing affect. .
SETSYS BACKUP | NOBACKUP has no relevance with the ABARSVERSIONS parameter. However, a BCDS must exist or the EXPIREBV ABARSVERSIONS command fails.
When ABARSVERSIONS has been specified, the BCDS is searched and each ABR record is checked to see if the ABARS version has expired. For expired ABARS versions, the control file name is located in the catalog and a list of volume serial numbers that the control file resides on is requested. When necessary, the volumes are deleted from the RACF® HSMABR tape volume list. The control file is uncataloged after the volume serial number list has been exhausted. When the file does not exist in the catalog, it is not an error condition, and the ABR record can still be deleted.
If the management class specified in the most current version of the ABR record for a specific aggregate group does not exist, expiration of the aggregate group being processed is skipped. If an aggregate group name has been specified on the EXPIREBV command, the command fails for this case.
If it is active, installation exit ARCTVEXT is called for each volume being processed, indicating to the exit that the volume being expired is an ABARS tape volume.
This process is repeated for the data files and the instruction/activity log files.
When you use EXECUTE with the ABARSVERSIONS parameter, message ARC6377I is issued to show the status of each file in the ABR record. Message ARC6376I is also issued to show whether the ABR record was deleted.
When you use DISPLAY with the ABARSVERSIONS parameter, a report is generated that lists information about the ABR records that would have been omitted had EXECUTE been specified. The file status shows whether the file will be uncataloged when EXECUTE is run, or whether the file does not exist in the catalog (“Not in Catalog”). If “Catalog Error” is in the file status, an error has occurred when DFSMShsm retrieved the catalog information, and the ABR record cannot be deleted.
A sample of the output obtained when the ABARSVERSIONS parameter is used with DISPLAY is shown in Figure 1.
DISPLAY OF ABARS VERSIONS ELIGIBLE FOR EXPIRATION AT 08:36:24 ON 1995/02/07 FOR XA2
COMMAND INPUT: ABARSVERSIONS
SUBMITTER'S USERID: B999999
AGNAME = agname1 VERSION = 0001
AGGREGATE VERSION KEY = agname1.1995102000101 DELETED*
(* DETERMINED ON 1995/02/07)
AGGREGATE GROUP FILES FILE STATUS
prefix.C.C01V0001 Uncataloged
prefix.D.C01V0001 Uncataloged
prefix.O.C01V0001 Not in Catalog
prefix.I.C01V0001 Uncataloged
AGGREGATE VERSION KEY = agname1.1995102000102 NOT DELETED*
(* DETERMINED ON 1995/02/07)
AGGREGATE GROUP FILES FILE STATUS
prefix.C.C02V0001 Uncataloged
prefix.D.C02V0001 Not in Catalog
prefix.O.C02V0001 Uncataloged
prefix.I.C02V0001 Catalog Error
AGNAME = agname2 VERSION = 0003 EXP DATE = 1995/05/17
AGGREGATE VERSION KEY = agname2.1995137000301 DELETED*
(* DETERMINED ON 1995/02/07)
AGGREGATE GROUP FILES FILE STATUS
prefix.C.C01V0003 Not in Catalog
prefix.O.C01V0003 Uncataloged
END OF DISPLAY - 00000002 ABARS VERSIONS ELIGIBLE FOR EXPIRATION
For more information about the EXPIREBV command, see EXPIREBV command: Deleting unwanted backup versions of data sets.