Sample: Running an application as a CICS application

In the sample, you learn how to run the Miniloan application as a CICS® application. The CICS application executes business rules on an instance of the zRule Execution Server for z/OS.

Before you begin

  • Configure an instance of zRule Execution Server for z/OS.
  • When you configure your server instance, add a DD statement to include the ++HBRWORKDS++.SHBRPARM(HBRSCEN) data set member in the CICS JCL. The HBRSCEN data set member contains input values to the Miniloan sample application. For more information, see Configuring a CICS rule-owning region to execute rules in a CICS JVM server.
  • Deploy the Miniloan RuleApp and the execution object model (XOM) to the persistence layer by submitting the ++HBRWORKDS++.SHBRJCL(HBRDPLYP) 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 Miniloan CICS application uses the following data set members:
  • ++HBRHLQ++.SHBRPLIS(HBRMINCP) contains the PL/I Miniloan application.
  • ++HBRHLQ++.SHBRCOBS(HBRMINC) contains the COBOL Miniloan application.
  • ++HBRWORKDS++.SHBRPARM(HBRSCEN) contains sample data for the borrowers.
  • ++HBRWORKDS++.SHBRPARM(HBRCICSZ) contains runtime variables that identify the server instance to use for rule execution.

Procedure

  1. Start zRule Execution Server for z/OS.
  2. Run HBRC in CICS to connect to the zRule Execution Server for z/OS.
  3. Run the Miniloan COBOL application by running the MINI transaction.
  4. Run the Miniloan PL/I application by running the MINP transaction.
  5. The execution results are returned to the CICS terminal.