From a CICS program, I am trying to make a call to a batch program. Is this possible? This is not the sort of thing...
that CICS applications should be doing. However, you can get away with it depending on what and how the batch program is doing. If it's just doing some sort of calculation, then just access it in the normal way for your language assuming that it does not do anything that does not fit with CICS, like the way it terminates.
A more proper way is to code up the batch program to act via the CICS RMI facilities. This will undoubtedly be a non-trivial task.
The other and best or safer way is to use the spooler functions and submit a batch job and then read the output back from spool.
CICS Technical Strategist -- CICS expert at Search390.com
Editor's note: Do you agree with this expert's response? If you have more to share, post it in one of our .VO7aaqqaAFk.0@/search390>discussion forums.
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.