Configure CICS to access IBM z/OS Connect to call APIs
To enable CICS® applications to call APIs through IBM z/OS Connect , enable the communication stub in the CICS region.
About this task
The IBM z/OS Connect communication stub is a module that establishes HTTP connections with the IBM z/OS Connect server, transfers data between z/OS applications and IBM z/OS Connect , and handles status and return codes that are issued by IBM z/OS Connect . Before your CICS applications can make RESTful API calls, you must configure the communication stub in your CICS region.
- HiperSocket, a zSeries hardware feature that provides high-performance internal communications between LPARs within the same central processor complex (CPC). For more information, see HiperSockets concepts and connectivity in the z/OS documentation.
- Shared Memory Communication (SMC), which requires z/OS V2.2 or later on z13® in the same CPC. For more information, see Shared Memory Communications in the z/OS documentation.
To set up the IBM z/OS Connect communication stub in CICS, you must have the following resources in your CICS region:
- A TDQUEUE resource with the name
BAQQ
- This resource defines the transient data queue that is used by the IBM z/OS Connect communication stub to log communication stub error messages. By default, messages are printed to DD BAQOUT in the CICS job log.
- A URIMAP resource with the name
BAQURIMP
- This resource handles HTTP client requests from the communication stub to the IBM z/OS Connect server.
- A PROGRAM resource with the name
BAQCSTUB
- This resource defines attributes for the IBM z/OS Connect communication stub program
BAQCSTUB
. By default,BAQCSTUB
is defined as threadsafe.
Sample resources are supplied with IBM z/OS Connect
and are provided in a CSD group with the name BAQAPIR
.
It is recommended that you use the resources as supplied. Based on the topology you want to use
and your CICS and IBM z/OS Connect environment, you might need to modify the
attributes of the BAQURIMP
resource definition.