Sample: Running an Automated Decision Services application

In this sample, you learn how to run the Miniloan application on an Decision Intelligence Client Managed Software archive as an embedded COBOL. The job executes business rules on an instance of zRule Execution Server for z/OS.

Before you begin

  • Configure an instance of zRule Execution Server for z/OS.
  • Deploy the COBOL-enabled Miniloan Decision Intelligence decision service to the persistence layer by submitting the ++HBRWORKDS++.SHBRJCL(HBRADSPLY) job.

About this task

The Miniloan application executes a set of loan eligibility rules against financial data for two borrowers. A message is returned that states whether the loans were approved or rejected.

The embedded zRule Execution Server for z/OS sample uses the following dataset members:
  • ++HBRWORKDS++.SHBRPARM(HBRBATCH) contains runtime variables that identify the server instance to use for rule execution.
  • ++HBRWORKDS++.SHBRPARM(HBRMSTR) contains runtime configuration properties.
  • ++HBRWORKDS++.SHBRPARM(HBRCMMN) contains runtime configuration properties.
  • ++HBRWORKDS++.SHBRPARM(HBRPSIST) contains the persistence properties.
  • ++HBRWORKDS++.SHBRJCL(HBRAMINB) runs the COBOL Miniloan sample for Decision Intelligence.

Procedure

  1. Start your zRule Execution Server for z/OS server instance.
  2. Run the Miniloan application by submitting either the ++HBRWORKDS++.SHBRJCL(HBRAMINB) or ++HBRWORKDS++.SHBRJCL(HBRAMINX) job.
    Note: HBRAMINX demonstrates calling both ODM and ADS from the same COBOL program.
  3. Verify that the JOBSTEP return code is set to 0.
  4. View the execution results in SDSF.
    The Miniloan application returns a completion code and a reason code if an error occurs.