Sample MODIFY RECOVERY control statements
Use the sample control statements as models for developing your own MODIFY RECOVERY control statements.
Example 1: Deleting SYSCOPY and SYSLGRNX records that are over a certain age
The following control statement specifies that the MODIFY RECOVERY utility is to delete all SYSCOPY and SYSLGRNX records that are older than 90 days for table space DSN8D81A.DSN8S81E.
//STEP1 EXEC DSNUPROC,UID='IUIQU2UD.MODRCV1',
// UTPROC='',SYSTEM='DSN'
//SYSIN DD *
MODIFY RECOVERY TABLESPACE DSN8D12A.DSN8S12E DELETE AGE(90)
/*
Example 2: Deleting SYSCOPY and SYSLGRNX records that are older than a certain date
The following control statement specifies that MODIFY RECOVERY is to delete all SYSCOPY and SYSLGRNX records that were written before 10 September 2002.
MODIFY RECOVERY TABLESPACE DSN8D12A.DSN8S12D DELETE DATE(20020910)
Example 3: Deleting SYSCOPY records for partitions
The following control statements specifies that MODIFY RECOVERY is to delete the following SYSCOPY records for table space TU5AP053:
- Any records in partition 2 that are older than 5 days
- Any records in partition 3 that were written before 9 October 2006
//STEP2 EXEC DSNUPROC,UID='FUN5U053.STEP2',UTPROC='',SYSTEM='SSTR'
//SYSIN DD *
MODIFY RECOVERY TABLESPACE TU5AP053
DSNUM 2
DELETE AGE(5)
MODIFY RECOVERY TABLESPACE TU5AP053
DSNUM 3
DELETE DATE(061009)
/*
Example 4: Deleting all SYSCOPY records for objects in a list and viewing the results
In the following example job, the LISTDEF utility control statements define three lists (L1, L2, L3). The first group of REPORT utility control statements then specify that the utility is to report recovery information for the objects in these lists. Next, the MODIFY RECOVERY control statement specifies that the utility is to delete all SYSCOPY records for the objects in the L1 list. Finally, the second group of REPORT control statements specify that the utility is to report the recovery information for the same three lists. In this second report, no information will be reported for the objects in the L1 list because all of the SYSCOPY records have been deleted.
//STEP4 EXEC DSNUPROC,UID='JULTU224.RCV1',
// UTPROC='',SYSTEM='SSTR'
//SYSIN DD *
LISTDEF L1 INCLUDE TABLESPACE DBLT2401.T*
LISTDEF L2 INCLUDE INDEXSPACE DBLT2401.I*
LISTDEF L3 INCLUDE INDEX IXLT2402
REPORT RECOVERY TABLESPACE LIST L1
REPORT RECOVERY INDEXSPACE LIST L2
REPORT RECOVERY INDEX LIST L3
MODIFY RECOVERY LIST L1
DELETE DATE(*)
REPORT RECOVERY TABLESPACE LIST L1
REPORT RECOVERY INDEXSPACE LIST L2
REPORT RECOVERY INDEX LIST L3
/*
Example 5: Retaining SYSCOPY and SYSLGRNX records of a GDG
The following control statement specifies that MODIFY RECOVERY is to retain as many recent records in SYSIBM.SYSCOPY as defined in the GDG limit.
MODIFY RECOVERY TABLESPACE DBKQBL01.TPKQBL01 RETAIN GDGLIMIT
Example 6: Retaining SYSCOPY and SYSLGRNX records
The following control statement specifies that MODIFY RECOVERY is to retain 4 recent records in SYSIBM.SYSCOPY.
MODIFY RECOVERY TABLESPACE DBKQBL01.TPKQBL01 RETAIN LAST (4)
Example 7: Deleting SYSCOPY and SYSLGRNX records for clone objects
The following control statement specifies that MODIFY RECOVERY is to delete SYSCOPY records and SYSLGRNX records for only clone objects.
MODIFY RECOVERY TABLESPACE DBKQBL01.TPKQBL01
CLONE
DELETE AGE(*)
Example 8: Deleting only FlashCopy image copies
The following control statement specifies that MODIFY RECOVERY is to delete information and data sets for FlashCopy® image copies that were taken before 25 November 2018.
MODIFY RECOVERY TABLESPACE DBFLSH.TSFLSH DSNUM(3)
DELETE DATE 20181125
FLASHCOPY ONLY DELETEDS