Creating the batch server

The batch job JCL and application code must be changed to run a zRule Execution Server for z/OS instance in the embedded mode.

Before you begin

You must use control statements to create and configure the execution environment. For more information, see Customizing topology 4: Embedding an execution server with your batch execution.

Also, the user ID under which the batch job runs must have an OMVS segment.

About this task

Create the embedded zRule Execution Server for z/OS instance for a batch job. CUSTBILL is used as an example batch job that you want to run.

Procedure

  1. Edit the JCL for the CUSTBILL batch job and specify the following DD cards:
    //HBRENVPR DD DISP=SHR,DSN=++HBRWORKDS++.SHBRPARM(HBREMBED)
    // DD DISP=SHR,DSN=++HBRWORKDS++.SHBRPARM(HBRCMMN)
    // DD DISP=SHR,DSN=++HBRWORKDS++.SHBRPARM(HBRPSIST)
    
    //STEPLIB DD DISP=SHR,DSN=++HBRHLQ++.SHBRLOAD
    // DD DISP=SHR,DSN=++HBRHLQ++.SHBRAUTH
    
  2. Add the following API calls to the CUSTBILL application code:
    • HBRCONN: Starts the zRule Execution Server for z/OS instance locally.
    • HBRRULE: Runs the rules in the local server instance.
    • HBRDISC: Terminates the local server instance.

What to do next

Submit your batch job JCL to run the zRule Execution Server for z/OS instance in the embedded mode.

Remember: You must have an instance of zRule Execution Server for z/OS running in either NATIVE, RULE, TEST, or CONSOLE mode.