Sample: Running an application as an IMS application (MPR)
In this sample, you learn how to run the Miniloan application as an IMS COBOL or PL/I application that runs in a message processing region. The IMS COBOL or PL/I 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 and configure IMS to execute rules on the server.
- Define the ++HBRHLQ++.SHBRLOAD(HBRMINIT) or ++HBRHLQ++.SHBRLOAD(HBRMINTP) program to IMS.
- Ensure that the HBRMINIT or HBRMINTP program 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 that is assigned to the working datasets.
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 application uses the following dataset
members:
- ++HBRHLQ++.SHBRCOBS(HBRMINIT) contains the COBOL Miniloan application.
- ++HBRHLQ++.SHBRPLIS(HBRMINTP) contains the PL/I Miniloan application.
- ++HBRWORKDS++.SHBRPARM(HBRSCEN) contains sample data for two borrowers.
- ++HBRWORKDS++.SHBRPARM(HBRBATCH) contains runtime variables that identify the server instance to use for rule execution.