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

Calling out a batch program

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.

Robert Harris
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

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.

Please create a username to comment.