Sample: Running an application as a batch job
Try out your Rule Execution Server on WebSphere® Application Server for z/OS® instance by running the Miniloan application as a batch job that executes rules through WebSphere Optimized Local Adapters (WOLA).
Before you begin
- Install and configure Rule Execution Server on WebSphere Application Server for z/OS.
- Install and configure WOLA on WebSphere Application Server for z/OS.
- Deploy the Miniloan RuleApp and the execution object model (XOM) to the DB2® persistence layer by submitting the ++HBRWORKDS++.SHBRJCL(HBRDPLOY) job.
About this task
The Miniloan sample application uses the following data
set members:
- ++HBRHLQ++.SHBRCOBS(HBRMINB) contains the Miniloan COBOL application.
- ++HBRWORKDS++.SHBRPARM(HBRSCEN) contains sample data for two borrowers.
- ++HBRWORKDS++.SHBRPARM(HBRWOLA) contains runtime variables that identify the server instance to use for rule execution.
- ++HBRWORKDS++.SHBRJCL(HBRMINW) contains JCL for running Miniloan as a batch job.
Procedure
- Start Rule Execution Server on WebSphere Application Server for z/OS.
- Run the Miniloan application by submitting the ++HBRWORKDS++.SHBRJCL(HBRMINW) job.
- Verify that the JOBSTEP return code is set to 0.
- View the execution results in SDSF. The Miniloan application returns a completion code and a reason code if an error occurs.
