Managing SmartSwitch rules


SmartSwitch rules enable you to customize the behavior of the Load, Unload, and Reorg utilities so that you can take advantage of NGT utilities while using your existing JCL code. 

You can edit, delete, or add multiple rules before you save all the changes to the SmartSwitch view in one action.

To add a SmartSwitch rule

New BMC Workbench console
  1. In the Product Tools perspective, select or add a SmartSwitch view .
    See Adding-a-SmartSwitch-view.
     The results pane displays a rules table for the selected  SmartSwitch view. 

     

    Warning

    Note

    Whenever you want, you can click  NW_restart.png to refresh the rules table. If you have not saved your changes, you are asked to confirm the action.

  2. In the tool bar, click Add rule NW_plus_circle_o.png.
  3. In the Add SmartSwitch Rule dialog box, complete all of the fields. (Blank fields are not supported.) 

    Field

    Description

    LPAR

    Enter the name of a specific LPAR or enter a wildcard value.

    Subsystem

    Enter the name of a specific subsystem or enter a wildcard value.

    Auth ID

    Enter the name of a specific authorization ID or enter a wildcard value.

    Database

    Enter the name of a specific database or enter a wildcard value.

    Space name

    Enter the name of a specific table space or index space name or enter a wildcard value.

    Object type

    Select to implement the rule for Partitioned by Growth spaces or for all object types.

    Utility

    Select: to implement the rule for all utilities or for one of the following utilities:

    • Load
    • Unload
    • Reorg

    Rule

    Select the rule that you want to implement:

    • Force Classic: The product always uses the appropriate classic utility (LOADPLUS,UNLOAD PLUS, or REORG PLUS).
    • Allow NGT: The product uses the NGT utility when the NGT utility can perform the task more effectively.
    • Report NGT: The product runs a simulation to identify which objects use the NGT utilities.

    Comment

    (optional) Enter a comment

    Warning

     The following guidelines apply to all entered field value:

    • The first character can be A-Z, @, #, or $
    • Remaining characters can be A-Z, 0-9, @, #, or $
    • The last character can be %, in addition to  A-Z, 0-9, @, #, or $
  4. Click OK.
    The rule is added to the rules table.
  5. In the tool bar, click Save changes NW_floppy.png.

    Warning

    Note

    When you save the rule, all lowercase letters are converted to uppercase.

Classic BMC Workbench console
  1. In the Product Tools perspective, select or add a SmartSwitch view .
    See Adding-a-SmartSwitch-view.
     The results pane displays a rules table for the selected  SmartSwitch view. 

     

    Warning

    Note

    Whenever you want, you can click  refresh-24.png to refresh the rules table. If you have not saved your changes, you are asked to confirm the action.

  2. In the tool bar, click Add rule Add-16.png.

    Success

    Tip

     You can also right-click in the results pane to select this action.  

  3. In the Add SmartSwitch dialog box, complete all of the fields. (Blank fields are not supported.) 

    Field

    Description

    LPAR

    Enter the name of a specific LPAR or enter a wildcard value.

    Subsystem

    Enter the name of a specific subsystem or enter a wildcard value.

    Auth ID

    Enter the name of a specific authorization ID or enter a wildcard value.

    Database

    Enter the name of a specific database or enter a wildcard value.

    Space name

    Enter the name of a specific table space or index space name or enter a wildcard value.

    Object type

    Select to implement the rule for Partitioned by Growth spaces or for all object types.

    Utility

    Select: to implement the rule for all utilities or for one of the following utilities:

    • Load
    • Unload
    • Reorg

    Rule

    Select the rule that you want to implement:

    • Force Classic: The product always uses the appropriate classic utility (LOADPLUS,UNLOAD PLUS, or REORG PLUS).
    • Allow NGT: The product uses the NGT utility when the NGT utility can perform the task more effectively.
    • Report NGT: The product runs a simulation to identify which objects use the NGT utilities.

    Comment

    (optional) Enter a comment

    Warning

     The following guidelines apply to all entered field value:

    • The first character can be A-Z, @, #, or $
    • Remaining characters can be A-Z, 0-9, @, #, or $
    • The last character can be %, in addition to  A-Z, 0-9, @, #, or $
  4. Click OK.
    The rule is added to the rules table.
  5. In the tool bar, click Save changes g_gud_save.png.

    Warning

    Note

    When you save the rule, all lowercase letters are converted to uppercase.

To edit a SmartSwitch rule

New BMC Workbench console
  1. In the Product Tools perspective, select the SmartSwitch view that contains the rule or rules that you want to edit.
    The results pane displays a rules table for the selected SmartSwitch view. 
  2. Select a rule, and click Edit rule NW_pencil_adapt.png
  3. In the Edit SmartSwitch Rule dialog box, edit the rule.
     See  Step 3 of To add a SmartSwitch rule
  4. Click OK.
    NW_pencil_adapt_teal.pngis displayed next to the edited rule.
  5. Continue to edit, until you are ready to save the changes to the rules.

    Success

    Tip

    Before saving, you can discard your changes by selecting a rule and clicking Reset rules NW_refresh.png.

  6. In the tool bar, click Save changes NW_floppy.png.
    The edited rules are updated in the rules table. 
Classic BMC Workbench console
  1. In the Product Tools perspective, select the SmartSwitch view that contains the rule or rules that you want to edit.
    The results pane displays a rules table for the selected SmartSwitch view. 
  2. Select a rule, and click edit-24.png

    Success

    Tip

    You can also right-click in the results pane to select this action.

  3. In the Edit SmartSwitch Rule dialog box, edit the rule.
     See  Step 3 of To add a SmartSwitch rule
  4. Click OK.
    edit-24.pngis displayed next to the edited rule.
  5. Continue to edit, until you are ready to save the changes to the rules.

    Success

    Tip

    Before saving, you can discard your changes by selecting a rule and clicking Reset rulesreset-24.png.

  6. In the tool bar, click Save changes g_gud_save.png.
    The edited rules are updated in the rules table. 

To copy a SmartSwitch rule

You can create a new SmartSwitch rule by copying and editing an existing SmartSwitch rule. 

New BMC Workbench console
  1. In the Product Tools perspective, select the SmartSwitch view that contains the rule or rules that you want to copy.
    The results pane displays a rules table for the selected SmartSwitch view.
  2.  Select a rule, and click Copy rule NW_files_copy_o.png
  3. Edit the rule.
  4. Click OK.
    The rule is added to the rules table. 

    Success

    Workbench validates the rule and does not let you save a rule that that contradicts or duplicates an existing rule.

  5. In the tool bar, click Save changes NW_floppy.png .

     

Classic BMC Workbench console
  1. In the Product Tools perspective, select the SmartSwitch view that contains the rule or rules that you want to copy.
    The results pane displays a rules table for the selected SmartSwitch view.
  2.  Select a rule, and click Copy ruleg_gud_copy-16.png

    Success

    Tip

    You can also right-click in the results pane to select this action.

  3. Edit the rule.
  4. Click OK.
    The rule is added to the rules table. 
     

    Success

    Workbench validates the rule and does not let you save a rule that that contradicts or duplicates an existing rule.

  5. In the tool bar, click Save changes g_gud_save.png .

     

 

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

BMC Workbench for DB2 12.1