Sample: Running an application as an IMS application (MPR)

Try out your zRule Execution Server for z/OS® instance by running the Miniloan sample as an IMS™ application that runs in a message processing region.

Before you begin

  • Configure an instance of Rule Execution Server on WebSphere® Application Server for z/OS and configure IMS to execute rules on the server.
  • Ensure that the HBRMINIT job is defined to IMS as an application and as a transaction that runs in the message processing region.
  • Deploy the Miniloan RuleApp and the execution object model (XOM) to the persistence layer by submitting the ++HBRWORKDS++.SHBRJCL(HBRDPLOY) job. ++HBRWORKDS++ represents the high-level qualifier assigned to the working data sets.

About this task

The Miniloan application uses the following data set members:
  • ++HBRHLQ++.SHBRCOBS(HBRMINIT) contains the Miniloan application.
  • ++HBRWORKDS++.<HBRSSID_NAME>.SHBRPARM(HBRSCEN) contains sample data for two borrowers.
  • ++HBRWORKDS++.<HBRSSID_NAME>.SHBRPARM(HBRWOLA) contains runtime variables that identify the server instance to use for rule execution.

Procedure

  1. Start zRule Execution Server for z/OS.
  2. Make the following changes to the message processing region JCL:
    1. Define the zRule Execution Server for z/OS SHBRLOAD library to IMS in the STEPLIB statement. For example:
      //STEPLIB  DD DSN=WODM.HBR1.BASE.SHBRLOAD,DISP=SHR
    2. Add an HBRENVPR DD statement that points to the <HBRSSID_NAME>SHBRPARM(WOLA) member. For example:
      //HBRENVPR DD DISP=SHR,DSN=WODM.HBR.CUSTMISE.HBRR.SHBRPARM(HBRWOLA)
    3. Add a SCENARIO DD statement that points to the <HBRSSID_NAME>SHBRPARM(HBRSCEN) member. For example:
      //SCENARIO DD DISP=SHR,DSN=WODM.HBR.CUSTMISE.HBRR.SHBRPARM(HBRSCEN)
  3. Log in to the IMS console.
  4. Run the Miniloan application by entering HBRMINIT followed by a space.
  5. Verify that the JOBSTEP return code is 0.
  6. View the execution results at the IMS console or in SDSF. The Miniloan application returns a completion code and a reason code if an error occurs.