Sample: Running an application as an IMS application (BMP or DL/I)
In this sample, you learn how to run the Miniloan application as an IMS™ application in a batch processing region or by issuing DL/I commands. The process 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(HBRMINI) job to IMS.
- Deploy the Miniloan RuleApp and the execution object model (XOM) to the persistence layer by submitting the ++HBRWORKDS++.SHBRJCL(HBRDPLOY) 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.
By default, the Miniloan application runs in the batch message processing (BMP) region. To use Data Language/Interface (DL/I) instead, you must update the .SHBRJCL(HBRMINI) job by providing a value for the IMSPLEX variable and uncomment a STEPLIB statement. See the HBRMINI data set member for detailed instructions.
This Miniloan application
uses the following data set members:
- ++HBRHLQ++.SHBRCOBS(HBRMINI) contains the Miniloan application.
- ++HBRWORKDS++.SHBRPARM(HBRSCEN) contains sample data for two borrowers.
- ++HBRWORKDS++.SHBRJCL(HBRMINI) contains JCL for running the Miniloan application in a batch processing region or by using DL/I calls.
- ++HBRWORKDS++.SHBRPARM(HBRBATCH) contains runtime variables that identify the server instance to use for rule execution.
Procedure
- Start the zRule Execution Server for z/OS server.
- Run the Miniloan application by submitting the ++HBRWORKDS++.SHBRJCL(HBRMINI) job.
- Check the JOBSTEP return code. If the job completed successfully, it is set to 0.
- Check the completion code and reason code in SDSF. If the job completed successfully, they are set to 0.
- View the execution results in SDSF. The Miniloan application returns a completion code and a reason code if an error occurs.
