Sample: Running an application as an embedded COBOL or PL/I batch job
In the sample, you learn how to run the Miniloan application as an embedded COBOL or PL/I batch job. The job executes business rules on an instance of the zRule Execution Server for z/OS®.
Before you begin
- Configure an embedded batch execution environment by using the Operational Decision Manager for z/OS control statements. For more information about creating a batch environment, see Customizing topology 5: Embedding an execution server with your batch execution.
- Deploy the Miniloan Rule Application 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.
The embedded zRule Execution Server for z/OS sample uses the following data set members:
- ++HBRWORKDS++.SHBRPARM(HBREMBED), which provides the runtime configuration properties.
- ++HBRWORKDS++.SHBRPARM(HBRCMMN), which provides the common configuration properties.
- ++HBRWORKDS++.SHBRPARM(HBRPSIST), which provides the persistence properties.
- ++HBRWORKDS++.SHBRJCL(HBRMINBE), which runs the COBOL Miniloan sample.
Procedure
- Submit ++HBRWORKDS++.SHBRJCL(HBRMINBE) to run the embedded zRule Execution Server for z/OS inside a COBOL batch job.
- Verify the execution of HBRMINBE by looking at the job return code, STDOUT, and STDERR in SDSF. More debugging information is available in the logs directory in the ++HBRWORKPATH++.