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

Two ways to get some JCL submitted from CICS

Can I send a job batch from CICS? We want send job batch normally with control targets. What is the procedure?

There are two ways to get some JCL submitted from CICS. Pick the one which seems most fun for you!

You can use the XC SPOOL commands. These are used to send/get things from JES: consequently, you can send some JCL to JES via the internal Reader and get the JCL run as normal.

To do this use XC SPOOLOPEN OUTPUT USERID('INTRDR') to get thing going, XC SPOOLWRITE to send the CL80 lines of JCL (an XC command per card) and end via XC SPOOLCLOSE which sends the card images off to JES. Don't forget to send a properly formatted Jobcard with the correct puserid/password as the 1st card.

If you are really keen, you can use the equivalent XC SPOOLOPEN INPUT & XC SPOOLREAD to get the output from the submitted job!

The other way is to use a TSQ defined via JCL to be the Internal reader. Then Open it, write CL80 cards and Close the TDQ to subit the job. Using this method means you have to Critical Section (ENQ and DEQ) the TDQ to stop multiple access' to it.

I prefer the former method to the latter.


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.

-ADS BY GOOGLE

SearchWindowsServer

SearchServerVirtualization

SearchCloudComputing

Close