Report on obsolete backup entries in files data set
search cancel

Report on obsolete backup entries in files data set

book

Article ID: 189732

calendar_today

Updated On: 03-26-2025

Products

Disk Backup and Restore - MVS DISK BACKUP AND RESTORE- ADD-ON OPTIO DISK BACKUP AND RESTORE

Issue/Introduction

In the files data set there are a lot of backup entries for data sets which were deleted long ago as well as their HLQ. According to the management class, the last backup is being kept with 'NOLIMIT'.

How is it possible to create a report or a list of backups in the files data set for which the original data sets were deleted or even the HLQ does not exist?

 

Resolution

There is no report which lists dsnindex backup entries for uncataloged data sets, since the catalog status for each data set is not tracked in the DSNINDEX record. Only when catalog status information is required, then it is obtained through locate or CSI query, like it is done by IXMAINT.

The WHYFLAGS in the SMSPRINT DD output from IXMAINT can be used to identify these data sets.

For example:

 

ADSDM489 9999 DMS ARCHIVED SMS CONTROLLED DATA SET = HLQ.FILE2 VOLSER = vol1 COPY# = 1
ADSDM489 9999 MANAGMENT CLASS AT ARCHIVE = MGMT MANAGMENT CLASS USED FOR IXMAINT = MCTEMP
ADSDM489 9999 DATA SET KEPT, WHY = PASSED ALL CHKS WHYFLAGS = SV        LM CB ARCIVE KEY = ARCKEYnn

If we look at the WHYFLAGS in detail there is a L at +10 which might be an indication for such a dataset:

0123456789012345* *
SV        LM CB
----------------*-----*-------------------------------------------------------------------------
S *+0 *SMS MANAGED VOLUME
V *+1 *DSN IS UNCATALOGED AND MAX BACKUP VERSION DSN DELETED SPECIFIED
L *+10 *MANAGMENT CLASS DAYS TO KEEP LAST BACKUP VERSION SPECIFIED
M *+11 *EXPIRATION DATE CALCULATED FROM MANAGMENT CLASS DAYS TO KEEP BACKUP USED
C *+13 *DID CSI INQ TO GET CATALOG INFO
B *+14 *BACKUP COPY