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
Related Q&A from Robert Crawford
For better mainframe capacity planning, how do I convert CPU hours to MIPS? And is there a way to calculate the relationship between MIPS and MSUs? Continue Reading
I have two years of experience in mainframe technology, currently working as a mainframe developer. I want to change to Java technology. Continue Reading
I want to replicate DB2 from the mainframe to an AIX box since it's cheaper and the copy can be used for testing. Is this possible? Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.