zOS Connect maint level 03.00.70 came out in June 2023, so it's over three years behind
Latest maint level is 3.00.104 which came out in Jun 2026
About 2 years ago, IBM made available in zOS Connect what is called OpenAPI3, the version you have is referred to now as OpenAPI2
In OpenAPI3, you now use what is called the Designer, which is a container, to create APIs. There is a zOS Connect server running in the Designer container, and you can connect this directly to Db2, CICS and IMS
There is no charge to download the zOS Connect Designer, though you may need to set up an IBM Cloud account to be able to pull the image.
https://www.ibm.com/docs/en/zos-connect/3.0.0?topic=api-download-zos-connect-designer-image
This is link to zOS Connect Db2 OpenAPI3 tutorial
https://www.ibm.com/docs/en/zos-connect/3.0.0?topic=project-creating-db2-zos-connect-api
zOS Connect can call Db2 by invoking a REST API in Db2 on zOS
Db2 on zOS has had capability to create REST APIs for several years
Did you try a google search using something like:
"how create a zos db2 rest service that calls a stored procedure"
If you do you will find quite a few articles about doing this
such as
https://www.google.com/url?sa=t&source=web&rct=j&opi=89978449&url=https://ibm-zcouncil.com/wp-content/uploads/2021/05/2021-WW-Lab-V3.4.pdf&ved=2ahUKEwiT7LrV_s6VAxWBl1YBHRhUIgAQFnoECCcQAQ&usg=AOvVaw3zSqSv2YaotriiliJuIN3A
This is a lab type doc, it does use the older OpenAPI2 eclipse based toolkit, but on page 19 it shows how to create a Db2 REST service that calls a stored procedure:
FOR STORED PROCEDURE:
Create the createService JSON Body by entering all the fields required to create a Db2
REST service, provided below. Click on the Body tab and then the raw radio button.
{
"requestType": "createService",
"sqlStmt": "call USER1.EMPL_DEPTS_NAT(:WHICHQUERY,:DEPT1,:DEPT2)",
"collectionID": "SYSIBMService",
"serviceName": "selectByDeptSP",
"bindOption": "ISOLATION(UR)",
"description": "Select employees based on department or departmen
You can follow that doc as an example to create Db2 REST service APIs that call your stored procedures. Once you have created it, you can invoke it directly from a browser or using curl type cmd
If you want, you can have your clients call that Db2 REST API directly, they will need to supply a RACF uid/pwd
You can use zOS Connect OpenAPI3 Designer to create a full set of standard REST APIs that call the Db2 REST APIs you set up. The advantage of this is that you can use authentication methods like a JSON Web Token to authenticate to zOS Connect on zOS, have the JWT mapped to a RACF user ID, which then flows to Db2.
------------------------------
Edward McCarthy
WAS on System z
------------------------------