Configuring a CICS application-owning region to execute rules in a CICS rule-owning region

You can configure an application-owning region to execute rules in a remote rule-owning region. The connection uses a distributed programming link (DPL). The Rule Execution Server runs in the rule-owning region on a CICS® JVM.

Before you begin

Ensure that the rule-owning region is configured. For more information, see Configuring a CICS rule-owning region to execute rules in a CICS JVM server. Also, define the required CICS resources (CONNECTION, IPCONN, SESSION) for the DPL, and enable interregion communication (IRC) on both the application-owning region and on the rule-owning region.

For information on defining CICS resources and enabling IRC, see How to define connections to remote systems in IBM Knowledge Center.

If you are configuring the application-owning region on another MVS™ image or sysplex you must copy the client libraries to the MVS image.

The application-owning region must be on CICS Transaction Server V3.2, or later, and must be connecting to a rule-owning region on CICS Transaction Server V4.1, or later.

About this task

To complete this task, you copy the client libraries to the application-owning region, edit the required variables, and submit the JCL jobs. You can then start CICS with a CEDA command, install the required CICS resources, and test the connection between the application-owning region and the rule-owning region by running the HBRC transaction. You must run the HBRC transaction each time the CICS region is cycled to initialize the connection to the rule-owning region.

Procedure

  1. Complete this step if you are configuring the application-owning region on another MVS image or sysplex. Copy the client libraries to the MVS image of the application-owning region. First, copy the ++HBRHLQ++.SHBRCICS data set, then copy the following members:
    • ++HBRWORKDS++.SHBRJCL(HBRCSD)
    • ++HBRWORKDS++.SHBRPARM(HBRCICSZ)
    • ++HBRWORKDS++.SHBRPARM(HBRCMMN)
    • ++HBRWORKDS++.SHBRPARM(HBRSCEN)
  2. Edit the ++HBRWORKDS++.SHBRJCL(HBRCSD) data set so that the HBRCJVMS program is defined as a remote server program. You can uncomment and configure the sample remote program and delete or comment out the original definition. For more information, see Defining remote server programs in IBM Knowledge Center.
  3. Submit the ++HBRWORKDS++.SHBRJCL(HBRCSD) job so that the resources required by CICS are defined.
  4. In the CICS system initialization parameters, add the list name that is represented by ++CICSLIST++ to the list of resource definition groups that is specified by the GRPLIST parameter. For example:
    GRPLIST=(DFHLIST,HBRLIST),
  5. Edit the SHBRPARM(HBRCICSZ) parm member. Change the HBRTARGETRES variable to RCICSJVM.
  6. Edit the CICS JCL to include the zRule Execution Server for z/OS data sets:
    1. Ensure that the ++HBRHLQ++.SHBRCICS data set is added to the DFHRPL concatenation.
    2. Pass the necessary runtime variables to the server by adding the SHBRPARM(HBRCICSZ) and SHBRPARM(HBRCMMN) data set members to the HBRENVPR DD statement as shown in the following DD statements:
      //HBRENVPR DD DISP=SHR,DSN=++HBRWORKDS++.SHBRPARM(HBRCICSZ)
      //         DD DISP=SHR,DSN=++HBRWORKDS++.SHBRPARM(HBRCMMN)
    3. If you plan to run the Miniloan sample application to verify your configuration, add the SHBRPARM(HBRSCEN) data set member to the SCENARIO DD statement. The HBRSCEN member contains input values for the Miniloan application.
      //SCENARIO DD DISP=SHR,DSN=++HBRWORKDS++.SHBRPARM(HBRSCEN)
  7. Start CICS.
  8. Install the HBRGROUP resources by using the following command:
    CEDA INSTALL GROUP(HBRGROUP)
  9. Test the configuration by running the HBRC transaction to initialize the application-owning region. If CICS succeeds in connecting to the server, message GBRZC9001I is issued. If CICS fails to connect to the server, message GBRZC9000E is issued with a return code that contains diagnostic information. You must run the HBRC transaction each time the CICS region is cycled to initialize the connection to the rule-owning region.
  10. Optional: Configure CICS to connect to the server instance when CICS starts by doing one of the following actions:
    • If you do not have a program list table defined, add the PLTPI=HB parameter to the CICS system initialization parameters.
    • If you have a program list table defined and specified in your CICS system initialization parameters, add the HBRCCON program to the list by including the following statement:
      DFHPLT TYPE=ENTRY,PROGRAM=HBRCCON
       
  11. Optional: You can verify your configuration by running the Miniloan sample application as a CICS application. For more information, see Sample: running the Miniloan application as a CICS application.