Adding API calls to a z/OS client application
To enable a z/OS® application (COBOL or PL/I application) to execute rulesets on IBM® Decision Server for z/OS, you must include calls to the necessary APIs.
About this task
Use the HBRA-CONN-AREA data area to pass the RuleApp path and the input parameters and to receive the outputs of the ruleset execution.
The following data set members
contain the information that you need to code the API calls:
- For COBOL applications:
- ++HBRHLQ++.SHBRCOBC(HBRWS) contains the HBRA-CONN-AREA data area.
- ++HBRHLQ++.SHBRCOBC(HBRC) contains the copybook for the completion codes and the reason codes.
- For PL/I applications:
- ++HBRHLQ++.SHBRPLIC(HBRWSP) contains the HBRA-CONN-AREA data area.
- ++HBRHLQ++.SHBRPLIC(HBRCP) contains the include file for the completion codes and the reason codes.
The steps in the procedure include examples that are taken from the source code for the Miniloan sample application. The Miniloan application executes a set of loan eligibility rules against financial data for two borrowers. A message then states whether their loans are approved or disapproved. To view the COBOL source code for the entire application, refer to the following ++HBRHLQ++.SHBRCOBS data set members:
- HBRMINB for batch applications.
- HBRMINC for CICS® applications.
- HBRMINI for IMS applications that run in a batch processing region or that use DL/I calls.
- HBRMINIT for IMS applications that run in a message processing region.