Setting up automated reorganizations
To automate reorganizations based only on REORG candidate table recommendations
- Ensure that the reorg.analyze_physical_organization configuration option in member IODPAREO (the REORG Advisor) is set to 1.By using this default setting, the REORG Advisor reviews both physical and performance criteria.
Create the object set PUBLIC.AFD_REORG_CAND by modifying the SQL in the INSOBJS member of the sample library as detailed in the instructions within the sample file. Following is a summary of the steps to edit this file.
- Edit the member to execute it on your subsystem using DSNTEP2. As an alternative, you can use the SQL with any other software product that executes SQL.
- In the INSERT statements, change the creator name for the DASD MANAGER PLUS tables to match your site’s installation. Also, change the subsystem ID where those tables are located.
- In the INSERT statements, change the creator and table name for the REORG candidate table. Also, change the subsystem ID where that table is located.
- Submit the job.
- Change and execute the default corrective action:
(optional) Using the DASD MANAGER PLUS online interface, update the sample action named BMC_BMCREORG_DEFAULT (installed with DASD MANAGER PLUS) to select utility options for your site.
(optional) Add other services such as utilities or job steps to the actions. For example, you could add a QUIESCE or a AMICOPY service before the BMCREORG in BMC_BMCREORG_DEFAULT action.
Change the sample BMCTRIG JCL as detailed in the instructions within the sample file. Following is a summary of the steps to edit this file.
- Change the member to include the Db2 and DASD MANAGER PLUS data set names that are installed at your site.
- Change the job card to meet your installation standards.
- Change the parameters for ASUSTRIG to specify your DB2 subsystem and the DASD MANAGER PLUS installation options module.
- Change the BMCTRIG command syntax to identify the data sets that are used to generate the BMC REORG PLUS jobs.
Change the job card specifications for the generated jobs.
- Execute or schedule TRIGFORC based on your site’s requirements.BMCTRIG generates a reorganization job step for each object that the object set identifies. BMCTRIG balances the workload across the number of jobs that the NUMJOBS option specifies.
Schedule the BMCTRIG generated jobs based on your site’s requirements.Use a scheduler or the BMCTRIG AUTOSUBMIT option to submit the generated JCL automatically.
To automate reorganizations based on REORG candidate table recommendations and BMCTRIG evaluations
- Ensure that the reorg.analyze_physical_organization configuration option in member IODPAREO (the REORG Advisor) is set to 0.By default, the REORG Advisor reviews both physical and performance criteria. Setting the configuration option to 0 ensures that REORG Advisor reviews only performance criteria. This allows the DASD MANAGER PLUS BMCTRIG function to handle all real-time statistics (RTS) and other organization related evaluation.
Create the object set PUBLIC.AFD_REORG_CAND by using the SQL in the INSOBJS member as detailed in the instructions within the sample file. Following is a summary of the steps to edit this file.
- Edit the INSOBJS member to execute it on your subsystem by using DSNTEP2. As an alternative, you can use the SQL with any other software product that executes SQL.
- In the INSERT statements, change the creator name for the DASD MANAGER PLUS tables to match your site’s installation. Also, change the subsystem ID where these tables are located.
- In the INSERT statements, change the creator and table name for the REORG candidate table. Also, change the subsystem ID where that table is located.
Submit the job.
Change and execute the INSTHRSH member to insert thresholds that BMCTRIG uses to further evaluate the object set as detailed in the instructions within the sample file. Following is a summary of the steps to edit this file.
- Change the job card to meet your installation standards.
- Change #ASUSSID in SYSTSIN to the subsystem ID where your DASD MANAGER PLUS tables are located and where this job is executed.
- Change the creator name used with the DASD MANAGER PLUS tables to match your site’s installation.
- Submit the job.
- (optional) Using the DASD MANAGER PLUS interface, change the threshold values, if needed.
The following table lists the thresholds and their values.
Threshold name
Value
APPNDINS
10
DSEXTENT
50
EXTENTS
50
FARIND
15
LEAFFOFF
10
LEAFTOFF
30
PSEUDODL
10
REORMDEL
1
REORMODS
10
REORPEND
1
REORSPAC
30
SPACE
30
TOTALIND
30
UNCLUST
10
- Change the default corrective action:
(optional) Using the DASD MANAGER PLUS online interface, update the action named BMC_BMCREORG_DEFAULT (installed with DASD MANAGER PLUS) to select utility options for your site.
- (optional) Add other services such as utilities or job steps to the actions. For example, you could add a QUIESCE or a AMICOPY service before the BMCREORG in BMC_BMCREORG_DEFAULT action.
- Change and execute the INSCACT member as detailed in the instructions within the sample file.
Change the sample BMCTRIG JCL as detailed in the instructions within the sample file.Following is a summary of the steps to edit this file.
- (optional) Using the DASD MANAGER PLUS online interface, update the action named BMC_BMCREORG_DEFAULT (installed with DASD MANAGER PLUS) to select utility options for your site.
- Change the member to include the Db2 and DASD MANAGER PLUS data set names that are installed at your site.
- Change the job card to meet your installation standards.
- Change the parameters for ASUSMAIN and ASUSTRIG to specify your Db2 subsystem and the DASD MANAGER PLUS installation options module.
- Change the BMCTRIG command syntax to identify the data sets that are used to generate the BMC REORG PLUS jobs.
- Change the job card specifications for the generated jobs.
- Execute or schedule TRIGEXCP based on your site’s requirements.First, BMCTRIG checks for objects that meet or exceed the thresholds that you have defined in the object set. BMCTRIG then generates a reorganization job step for each identified object. BMCTRIG balances the workload across the number of jobs that the NUMJOBS option specifies.
- Schedule the BMCTRIG generated jobs based on your site’s requirements.
Use a scheduler or the BMCTRIG AUTOSUBMIT option to submit the generated JCL automatically.