AUTODS function distributed solutions


The following distributed solutions are provided for the AUTODS function:

For locations of the library members that the distributed solutions use, see Libraries-for-the-distributed-solutions.

DELNOPEN—Delete never opened solution

This solution deletes data sets that were never opened.

The filters look for non-VSAM data sets that have a percentage used of 0 (zero) and a changed bit indicator of N. Data sets that match this criteria are added to the skeleton JCL member SRMJOB03 to be deleted.

DELNOPEN solution

Solution component

Description

Name

DELNOPEN

Invocation

F MVSRMAS,SVOS AUTODS VOL=xxxxxx,SOL=DELNOPENMVSRMAS is your BMC AMI Storage Started Task name.

This command starts AUTODS processing, causing data set records to be created for volume xxxxxx and checked against the DELNOPEN solution in the AUTODS RLST. Data sets that match the solution are acted upon.

FLST member

SMFLSTAD

SET MODE=ACT
EXC AD_DSN=SYS1./
INC AD_DSN=/

Set the mode to active include all data sets except data sets that are prefixed with SYS1./. All data sets except for data sets with SYS1./ prefixes will be passed on for RLST processing. If you have several solutions coded in an RLST member, the data sets with SYS1./ prefixes will not be processed in any of the solutions that are coded in the RLST member for the AUTODS function. If you wanted these data sets to be excluded from the DELNOPEN solution but included in other solutions for the AUTODS function, you would remove the EXC AD_DSN=SYS1./ statement from the FLST and include it in the RLST as part of this solution.

RLST member

SMRLSTAD

SET SOLUTION=DELNOPEN                                           X
    ACT_JOB=SRMJOB03                                            X
    ACT_EVENTID=AD086
EXC AD_DSORG=VS
INC AD_PUSED=0                                                  X
    AD_CHG=N

This RLST creates a SET result group (subset) of data set records that passed the FLST criteria and that have the following characteristics:

  • Percentage used value of 0
  • Changed bit indicator set to N, which excludes any data sets that are VSAM

Data sets that are prefixed with SYS1./ have been excluded from this solution by the FLST statements; however, no other high-level qualifiers have been excluded. Some data sets that you do not want deleted might pass the FLST filtering. For instance, during the installation of some subsystems, dump data sets are created (for example, IBM CICS and DB2 data sets). These data sets remain empty (zero percent used) and unreferenced (change bit indicator of N) until the application that is using the subsystem abends. Deleting this type of data set might cause a problem with your subsystem. Therefore, you might need to add other high-level qualifiers to an EXC statement in the RLST definition. For example, if the high-level qualifier for your CICS dump data sets is CICS, specify EXC AD_DSN=CICS/.

Note: Use extreme caution when implementing this solution.

Skeleton JCL member

COMPRLSE—DFDSS compress and release solution

This solution submits a batch job that executes the COMPRLSE solution against the top 25 non-VSAM data sets that have greater than 5 extents.

DFDSS compress and release solution


Solution component

Description

Name

COMPRLSE

Invocation

F MVSRMAS,SVOS AUTODS VOL=xxxxxx,SOL=COMPRLSE

MVSRMAS is your BMC AMI Storage Started Task name.

This command starts AUTODS processing, causing data set records to be created for volume xxxxxx and checked against the COMPRLSE solution in the AUTODS RLST. Data sets that match the solution are acted upon.

FLST member

SMFLSTAD

SET MODE=ACT
EXC AD_DSN=SYS1./
INC AD_DSN=/

Set the mode to active include all data sets except data sets that are prefixed with SYS1./. All data sets except for data sets with SYS1./ prefixes will be passed on for RLST processing. If you have several solutions coded in an RLST member, the data sets with SYS1./ prefixes will not be processed in any of the solutions that are coded in the RLST member for the AUTODS function. If you wanted these data sets to be excluded from the COMPRLSE solution but included in other solutions for the AUTODS function, you would remove the EXC AD_DSN=SYS1./ statement from the FLST and include it in the RLST as part of this solution.

RLST member

SMRLSTAD

SET SOLUTION=COMPRLSE                    X
    SORT=(AD_EXTS,D)                     X
    ACT_JOB=SRMJOB01                     X
    ACT_EVENTID=AD080                    X
    ACT_COUNT=25
INC AD_EXTS>2                            X
    AD_DSORG=PO

This RLST creates a SET result group (subset) of data set records that passed the FLST criteria, have greater than five extents, and have a DSORG of PO. The RLST sorts the SET result group, putting the data sets with the largest number of extents at the top of the list. The first 25 records from the SET result group are used as input to the skeleton JCL.

This solution could, for example, process only 10 records or not limit the number of processed records at all. You can make these types of changes by changing the ACT_COUNT parameter or deleting the ACT_COUNT parameter.

Skeleton JCL member

DELUNCAT—Delete uncataloged data sets solution

This solution submits a batch job, which executes IEFBR14 and deletes uncataloged data sets. 

DELUNCAT solution

Solution component

Description

Name

DELUNCAT

Invocation

F MVSRMAS,SVOS AUTODS VOL=xxxxxx,SOL=DELUNCAT

MVSRMAS is your BMC AMI Storage Started Task name

This command starts AUTODS processing, causing data set records to be created for volume xxxxxx and checked against the DELUNCAT solution in the AUTODS RLST. Data sets that match the solution are acted upon.

FLST member

SMFLSTAD

SET MODE=ACT
EXC AD_DSN=SYS1./
INC AD_DSN=/

Set the mode to active include all data sets except data sets that are prefixed with SYS1./. All data sets except for data sets with SYS1./ prefixes will be passed on for RLST processing. If you have several solutions coded in an RLST member, the data sets with SYS1./ prefixes will not be processed in any of the solutions that are coded in the RLST member for the AUTODS function. If you wanted these data sets to be excluded from the DELUNCAT solution but included in other solutions for the AUTODS function, you would remove the EXC AD_DSN=SYS1./ statement from the FLST and include it in the RLST as part of this solution.

RLST member

SMRLSTAD

SET SOLUTION=DELUNCAT               X
    ACT_JOB=SRMJOB03                                                     
*   ACT_EVENTID=AD084                                                    
EXC AD_DSORG=VS                                                          
INC AD_CAT=N

This RLST creates a SET result group (subset) of data set records that passed the FLST criteria and that are uncataloged. Data sets that are VSAM are excluded.

Data sets with SYS1./ prefixes have been excluded in this solution by the FLST statements; however, no other high-level qualifiers have been excluded. Your data center might share volumes between systems that have data sets cataloged to one system but not another system. Because the records that are being processed through this solution were generated from one system only, some data sets might pass the FLST filtering that you do not want deleted (especially data sets cataloged in another Master Catalog).

Note: Use extreme caution when implementing this solution.

Skeleton JCL member

DFSMShsm migration to level 1 solution

This solution executes TSO commands from a batch job to migrate twenty data sets that have not been referenced in fifteen days. 

DFSMShsm solution

Solution component

Description

Name

MIGRATL1

Invocation

F MVSRMAS,SVOS AUTODS VOL=xxxxxx,SOL=MIGRATLl

MVSRMAS is your BMC AMI Storage Started Task name.

This command starts AUTODS processing, causing data set records to be created for volume xxxxxx and checked against the MIGRATLl solution in the AUTODS RLST. Data sets that match the solution are acted upon.

FLST member

SMFLSTAD

SET MODE=ACT
EXC AD_DSN=SYS1./
INC AD_DSN=/

Set the mode to active include all data sets except data sets that are prefixed with SYS1./. All data sets except for data sets with SYS1./ prefixes will be passed on for RLST processing. If you have several solutions coded in an RLST member, the data sets with SYS1./ prefixes will not be processed in any of the solutions that are coded in the RLST member for the AUTODS function. If you wanted these data sets to be excluded from the MIGRATL1 solution but included in other solutions for the AUTODS function, you would remove the EXC AD_DSN=SYS1./ statement from the FLST and include it in the RLST as part of this solution.

RLST member

SMRLSTAD

SET SOLUTION=MIGRATL1                    X
    SORT=(AD_DAYS,D)                     X
*   ACT_EVENTID=AD082                    X
    ACT_JOB=SRMJOB02                     X
    ACT_COUNT=20                                                        
EXC AD_DSORG=VS
EXC AD_DSORG=--
INC AD_DAYS>15

This RLST creates a SET result group (subset) of data set records that passed the FLST criteria and have not been referenced in 15 days. This process excludes VSAM data sets and data sets where the DSORG is undetermined or data set that have not been opened. This process sorts the SET result group by putting the data sets with the greatest number of days not referenced at the top of the list. The first 20 records from the SET result group are used as input to the skeleton JCL.

You can also exclude certain data sets from being migrated. For example, to exclude data sets with the high-level qualifier of SYS2./, add EXC AD_DSN=SYS2./ to the RLST statements of this solution.

Skeleton JCL member


 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*