Step 3b: Create System Application Group DB2

The DB2® application group runs on two specific systems, so you define it as a system application group.

Procedure

  1. Enter NEW DB2 at the command line on the Entry Name Selection panel for application groups. This displays the Define New Entry panel for application groups and the Entry name field already filled with DB2.
  2. Enter the required values on this panel:
    1. In this scenario DB2 runs permanently on only two of the three systems of SYSPLEX1 (SYSTEM2 and SYSTEM3), so type SYSTEM in the Application Group Type field.
    2. You want DB2 be started with all of its components but without specific backup considerations, so leave the Nature field as BASIC.
    3. To generate resources you need an automation name, so type DB2 in the Automation Name field.
    Press PF3. The Policy Selection panel is displayed indicating that the application group has been created.

    A resource is not created for the APG at this point because the application group is not yet linked to any systems.

  3. Select the WHERE USED policy item. This displays the Where Used panel with the three systems that you created in Step 1a: Creating the Systems.
  4. DB2 should only run on SYSTEM2 and SYSTEM3. Select SYSTEM2 and SYSTEM3 and press PF3 (END).
    You will see the Command Progress Display pop-up window telling you that the following two resources have been created:
    DB2/APG/SYSTEM2
    DB2/APG/SYSTEM3
    Background: A System Application Group resource is automatically generated if there is an Automation Name for the application group and a link to a system. One resource is generated for each linked system.

    The current configuration is shown in Figure 1.

    Figure 1. Scenario: Current Configuration with Application Group DB2
    Scenario: Current Configuration with Application Group DB2
  5. On the Policy Selection panel for DB2, select the APPLICATIONS policy item to link the required applications. This displays the Applications for ApplicationGroup panel with all 12 applications.
  6. Select DB21MSTR, DB21IRLM, DB21DIST, and DB21DBM1, and press PF3 (END) to return to the Policy Selection panel.

    Now DB21MSTR, DB21IRLM, DB21DIST, and DB21DBM1 are linked to two systems via the application group DB2. For the application group, the field Automatically link Application-Resources into APG is set to YES, which is the default.

    One resource is generated for each system link of each application. The Command Progress Display pop-up window indicates that the following resources are generated:

    DB21IRLM/APL/SYSTEM2
    DB21IRLM/APL/SYSTEM3
    DB21DBM1/APL/SYSTEM2
    DB21DBM1/APL/SYSTEM3
    DB21DIST/APL/SYSTEM2
    DB21DIST/APL/SYSTEM3
    DB21MSTR/APL/SYSTEM2
    DB21MSTR/APL/SYSTEM3

    The current configuration is shown in Figure 2.

    Figure 2. Scenario: Current Configuration with Applications Linked to DB2
    Scenario: Current Configuration with Applications Linked to DB2
  7. On the Policy Selection panel for application group DB2, select the RESOURCES policy item.

    This displays the Select System panel, showing the number of resources that have been selected for each of the two systems. You can compare the resulting panel on your system with Figure 3.

    Figure 3. Scenario: Select System Panel for DB2 Application group
       COMMANDS  ACTIONS  HELP                                                      
     ------------------------------------------------------------------------------ 
     AOFGARS1                          Select System                Row 1 to 2 of 2 
     Command ===>                                                   SCROLL===> PAGE 
                                                                                    
     Entry Type : ApplicationGroup      PolicyDB Name   : USER_PDB                  
     Entry Name : DB2                   Enterprise Name : USER_ENTERPRISE           
                                                                                    
     Action       System                          Selected Resources                
                  SYSTEM2                         4                                 
                  SYSTEM3                         4                                 
    
  8. A System Application Group can be linked to several systems. This generates application resources for those systems. So to work with the resource links, you first have to specify which system you want to get the resources for. This is done on the Select System panel by selecting one of the systems. On the Select System panel, select either SYSTEM2 or SYSTEM3 and press Enter.
    This displays the Select Resources panel with, for example, the two APL Resources for SYSTEM2. You can compare the resulting panel on your system with Figure 4.
    Figure 4. Scenario: Select Resources Panel for DB2 Application Group
       COMMANDS  ACTIONS  HELP                                                      
     ------------------------------------------------------------------------------ 
     AOFGARS3                        Select Resources               Row 1 to 2 of 2 
     Command ===>                                                   SCROLL===> PAGE 
                                                                                    
     Entry Type  : ApplicationGroup       Entry Name : DB2                          
     System      : SYSTEM2                                                          
                                                                                    
       Number of selected Resources     : 4                                         
       Show all Resources . . . . . . . . NO        YES NO                          
       Show only Resources with String. .                                           
                                                                                    
     Action    Status      Resource Name             Entry Name                     
               SELECTED    DB21DBM1/APL/SYSTEM2      DB21DBM1                        
               SELECTED    DB21DIST/APL/SYSTEM2      DB2DIST                        
               SELECTED    DB21IRLM/APL/SYSTEM2      DB21IRLM                       
               SELECTED    DB21MSTR/APL/SYSTEM2      DB21MSTR                        

    Both applications should be started, so no change is required on this panel.

  9. On the Select Resources panel, press PF3 (END) or CANCEL. This returns you to the Select System panel, where you can also view the Select Resources panel for the APL resources in SYSTEM3 to check the created links for SYSTEM3.
  10. Press PF3 (END) twice to return to the Policy Selection panel for the DB2 application group.
  11. Select the APPLGROUP INFO policy item to display the Application Group Information panel. Press PF8 to scroll down the input field section and change the Automatically link Application-Resources into APG field to NO.
    The DB2 application group is now complete.
  12. Press PF3 to return to the Entry Name Selection panel for application groups.
  13. The application group DB2 is now complete. If a start request is issued against DB2 on SYSTEM2, start requests to the application resources DB21MSTR, DB21IRLM, DB21DIST, and DB21DBM1 are also automatically issued for SYSTEM2. A start request against application group DB2 on SYSTEM3 does the same for SYSTEM3.