Calling zRule Execution Server for z/OS from a CICS application

You can execute rulesets on zRule Execution Server for z/OS® from a z/OS application (COBOL or PL/I application) that runs as a CICS® application.

Before you begin

  • In the ++HBRWORKDS++.SHBRPARM(HBRCICSZ) data set member, verify that the HBRSSIDLIST variable specifies the server group where the ruleset is to execute.

    The value of HBRSSIDLIST is set when you run the HBRUUPTI job in Step 5: Creating the working data sets.

  • Start the CICS region.

Procedure

  1. Add zRule Execution Server for z/OS API calls to your application.
  2. Include the zRule Execution Server for z/OS API code either statically or dynamically to resolve the API calls. It is highly recommended to use static API stub when you run inside CICS as it ensures full control of your application.
  3. Ensure that the application data set is added to the DFHRPL concatenation in the JCL for the CICS region.

    For example, the Miniloan sample program is accessible because it is a member of the ++HBRHLQ++.SHBRCICS data set, which is included in the DFHRPL concatenation during configuration.

  4. Run the HBRC transaction to enable the z/OS application to call zRule Execution Server for z/OS.
  5. When rule execution finishes, you can run the HBRD transaction to disable rule execution.