How to I get around the CICS_REGION_BUT_API_DISALLOWED error? I created a CICS standard-mode Liberty JVM Server and my Liberty messages.log shows the following FFDC when my application invokes DB2 with a JDBC Type 2 (T2) DataSource over SOAP.

1 reply

The "CICS_REGION_BUT_API_DISALLOWED" ERRORCODE is returned by CICS Transaction Server for z/OS (CICS TS) method IsCICS..getApiStatus if CICS determines the thread has not been CICS-enabled. When running in a CICS TS standard-mode Liberty JVM server, the CICSExectorServer runAsCICS method can be used to enable the JDBC T2 thread as a CICS thread so DB2 will allow the CICS DB2 attachement to connect.