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).

This was last published in March 2002

Dig Deeper on IBM system z and mainframe systems



Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.