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 data sets.
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 data set member:
//HBRENVPR DD DISP=SHR,DSN=++HBRWORKDS++.SHBRPARM(HBRBATCH)
For
a COBOL example, see the ++HBRWORKDS++.SHBRJCL(HBRMINB) data
set member, which contains the JCL used to run the COBOL Miniloan
sample application.
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.