Q
Problem solve Get help with specific problems with your technologies, process and projects.

How to determine what code is running, batch or CICS, in a dual-environment program

I am writing a program that I want to be dual environment -- batch and CICS since a majority of the code will be the same. But, where the code needs to differ between batch or CICS, I need a way to determine which one I am in. Is there a low-overhead way of finding out which environment I am in so I can then branch accordingly?


Language Environment provides a C/C++ function called isCICS() to determine if the invoking code is running in a CICS-LE environment. This function is documented in OS/390: C/C++ Run-Time Library Reference (SC28-1663).


Dig Deeper on IBM system z and mainframe systems

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

SearchServerVirtualization

SearchCloudComputing

Close