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 batch application.
Before you begin
In the ++HBRWORKDS++.SHBRPARM(HBRBATCH) 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 datasets.
Procedure
- Add zRule Execution Server for z/OS API
calls to your application.
-
Include the zRule Execution Server for z/OS API code either
statically or dynamically to resolve the API calls.
- In the JCL to run your application, add the following HBRENVPR
DD statement to point to the HBRBATCH dataset member:
//HBRENVPR DD DISP=SHR,DSN=++HBRWORKDS++.SHBRPARM(HBRBATCH)
For a COBOL example, see the
++HBRWORKDS++.SHBRJCL(HBRMINB) dataset member, which
contains the JCL used to run the COBOL Miniloan sample application.
Note: Alternatively, you can use
HBRMINBM instead of HBRMINB. The
HBRMINBM sample is a version of the COBOL Miniloan sample that is designed to
illustrate just the means of calling Operational Decision Manager from COBOL, without the
additional complexities of reading in sample data.
For a PL/I example, see the ++HBRWORKDS++.SHBRJCL(HBRMINBP) data
set member, which contains the JCL used to run the PL/I Miniloan sample
application.