The following examples present different ways to code the EXPIREBV command.
EXPIREBV DISPLAY STARTKEY(A000) ENDKEY(L888) SYSOUT(H)
In this example, a starting message is directed to the backup activity log and to the user. DFSMShsm attempts to delete all SMS backup versions that qualify for deletion. An ARC0734I message is directed to the backup activity log under the control of the SETSYS ACTLOGMSGLVL. Deletion is determined by the SMS management class attributes as they are defined for each data set.
EXPIREBV EXECUTE NONSMSVERSIONS(DBU(100))
In this example, a starting message is directed to the user. DFSMShsm processes all SMS backup versions. An output line is directed to SYSOUT class A for each backup version that qualifies for deletion. Deletion is determined by the SMS management class attributes as they are defined for each data set.
EXPIREBV DISPLAY NONSMSVERSIONS(CATALOGEDDATA(5))
In this example, a starting message is directed to the user. DFSMShsm processes all SMS backup versions. An output line is directed to the output dataset for each backup version that qualifies for deletion. Deletion is determined by the SMS management class attributes as they are defined for each data set.
EXPIREBV DISPLAY NONSMSVERSIONS(UNCATALOGEDDATA(10)) ODS(DSNAME)
EXPIREBV RESUME EXECUTE
A starting message is directed to the backup activity log and the user. Processing begins where the prior EXPIREBV command left off and continues to the ENDKEY specified in the prior command. If no ENDKEY is specified, processing continues to the end of the BCDS.
DFSMShsm attempts to delete all SMS backup versions that qualify for deletion. An ARC0734I message is directed to the backup activity log under the control of the SETSYS ACTLOGMSGLVL. Deletion is determined by the SMS management class attributes as they are defined for each data set.
No non-SMS backup versions are processed. An ending message is directed to the backup activity log and the user.
Figure 1 is a sample of a printer listing when you specify EXPIREBV ABARSVERSION with the DISPLAY parameter.
DISPLAY OF ABARS VERSIONS ELIGIBLE FOR EXPIRATION AT 18:21:50 ON 1992/08/25 FOR 381A
COMMAND INPUT: ABARSVERSIONS AGNAME(PAY1) RETAINVERSIONS(0000)
SUBMITTER'S USERID: **OPER-
AGNAME = PAY1 VERSION = 0001
AGGREGATE VERSION KEY = PAY1.1992238000101 DELETED*
(* DETERMINED ON 1992/08/25)
AGGREGATE GROUP FILES FILE STATUS
PAY1.C.C01V0001 NOT IN CATALOG
PAY1.D.C01V0001 NOT IN CATALOG
PAY1.O.C01V0001 NOT IN CATALOG
AGNAME = PAY1 VERSION = 0002
AGGREGATE VERSION KEY = PAY1.1992238000201 DELETED*
(* DETERMINED ON 1992/08/25)
AGGREGATE GROUP FILES FILE STATUS
PAY1.C.C01V0002 UNCATALOGED
PAY1.D.C01V0002 UNCATALOGED
PAY1.O.C01V0002 UNCATALOGED
END OF DISPLAY - 00000002 ABARS VERSIONS ELIGIBLE FOR EXPIRATION
Table 1 presents the header information when you specify EXPIREBV and DISPLAY.
Printer Output Heading | Description |
---|---|
SYS CAT | YES indicates that the backup version was made from a cataloged data set. |
GEN NMBR | This field contains the generation number of the backup version. The most recent backup version is 0, the next most recent is 1, and so forth. |
AGE | This is the number of days between the creation of the backup version and the execution of the EXPIREBV command. |
RET VERS | YES indicates that the version being listed is a retired version. NO indicates that the version is not a retired version. |
BACK PROF | YES indicates that a RACF® discrete backup profile exists. NO indicates that a RACF discrete backup profile does not exist. |
DISPLAY OF BACKUP VERSIONS ELIGIBLE FOR EXPIRATION AT 05:44:14 on 1991/01/07 for SYSTEM=3081
COMMAND INPUT: STARTKEY(M734413.F240BV09.N02.NAME44.XXX.NAMEIS44.BYT) ENDKEY(M734413.F240BV09.N04.NAME44.XXX.NAMEIS44.BYT)
DSNAME = M734413.F240BV09.N02.NAME44.XXX.NAMEIS44.BYT NOW CATALOGED, AS SMS
MANAGEMENT CLASS USED = DEFAULT1
BACKUP VERSION DSNAME SYS GEN RET BACK
CAT NMBR AGE VERS PROF
DFHSM.BACK.T074205.M734413.F240BV09.H7001 YES 003 006 NO NO
DFHSM.BACK.T214205.M734413.F240BV09.H7001 YES 002 006 NO NO
DFHSM.BACK.T534105.M734413.F240BV09.H7001 YES 004 006 NO NO
DFHSM.BACK.T464205.M734413.F240BV09.H7003 YES 001 004 NO NO
DSNAME = M734413.F240BV09.N03.NAME44.XXX.NAMEIS44.BYT NOW CATALOGED, AS SMS
MANAGEMENT CLASS USED = DEFAULT1
BACKUP VERSION DSNAME SYS GEN RET BACK
CAT NMBR AGE VERS PROF
DFHSM.BACK.T094205.M734413.F240BV09.H7001 YES 003 006 NO NO
DFHSM.BACK.T234205.M734413.F240BV09.H7001 YES 002 006 NO NO
DFHSM.BACK.T554105.M734413.F240BV09.H7001 YES 004 006 NO NO
DFHSM.BACK.T474205.M734413.F240BV09.H7003 YES 001 004 NO NO
DSNAME = M734413.F240BV09.N04.NAME44.XXX.NAMEIS44.BYT NOW CATALOGED, AS SMS
MANAGEMENT CLASS USED = DEFAULT1
BACKUP VERSION DSNAME SYS GEN RET BACK
CAT NMBR AGE VERS PROF
DFHSM.BACK.T104205.M734413.F240BV09.H7001 YES 003 006 NO NO
DFHSM.BACK.T244205.M734413.F240BV09.H7001 YES 002 006 NO NO
DFHSM.BACK.T564105.M734413.F240BV09.H7001 YES 004 006 NO NO
DFHSM.BACK.T494205.M734413.F240BV09.H7003 YES 001 004 NO NO
END OF DISPLAY - 00000012 BACKUP VERSIONS ELIGIBLE FOR EXPIRATION