User was running FDRABR DUMP TYPE=SCR and specified IFNOTCAT so it will remove all my uncatalogued entries from the specific volumes, however some VSAM Components are not getting selected. How can the user delete those uncatalogued VSAM Components? |
FDRABR Superscratch can be used to delete uncatalogued entries by specifying the IFNOTCAT keyword. However, for security purposes, some types of datasets are excluded from selection, they are described in the FDRABR Manual as below: Exceptions to automatic archivingThe following data sets are never selected for Archive or Superscratch:
The following data sets will not be selected by General Archive Selection Criteria on the DUMP statement or by a SELECT ALLDSN statement, but can be selected by other SELECT statements with more specific DSN= operands, including DSN=**:
Even though it is not documented, uncatalogued VSAM Components are also excluded from Superscratch selection. In order to remove those VSAM entries without a CLUSTER defined, you can run the following job instead: //STEP1 EXEC PGM=FDREPORT //SYSPRINT DD SYSOUT=* //SYSPUNCH DD SYSOUT=* //* SYSPUNCH DD SYSOUT=(A,INTRDR) //SYSUDUMP DD SYSOUT=* //ABRMAP DD SYSOUT=* //SYSOUT DD SYSOUT=* //SYSIN DD * DEFAULT DISABLE=DUPDSNCHECK XEX XDSN=(FDRABR.**,SYS1.**) XSELECT STORGRP=(STORGRP1,STORGRP2,...), CATALOG=NO,DSORG=AM PUNCH FDRLIB=MASKDD SORT FIELDS=VOL,BREAK=RPM PRINT RPTYPE=SELPCH //MASKDD DD DATA,DLM=$$ )REPRO //DELETE JOB (ACCT),CLASS=M,MSGCLASS=X,NOTIFY=&SYSUID )PREFIX //DEL<$$CCL5> EXEC PGM=IDCAMS //SYSPRINT DD SYSOUT=* //DISK DD DISP=SHR,VOL=SER=<VOL>,UNIT=3390 //SYSIN DD * )ENDPREFIX DELETE <DSN> VVR FILE(DISK) )SUFFIX /* $$ The job will check all the storage groups selected and identify the VSAM datasets with CATALOG=NO attribute. Then it will sort the entries by volume and create the delete job and put it on the SYSPUNCH DD statement. When you are comfortable with the results shown in the SYSPUNCH DD statement, you can either:
|