IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

DOS/VSE CICS/BATCH


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
dblucker

New User


Joined: 14 Jul 2005
Posts: 2

PostPosted: Thu Jul 14, 2005 1:54 am
Reply with quote

Can anyone tell me how to execute a batch program from within a CICS transaction? I seem to recall from classes that this is possible but can't find the command to do it.

Thanks,

David
Back to top
View user's profile Send private message
parikshit123

Active User


Joined: 01 Jul 2005
Posts: 269
Location: India

PostPosted: Thu Jul 14, 2005 11:34 am
Reply with quote

Hi,

You can use the TDQ method if you want. Make sure that in the JCL the DDNAME you have the INTRDR option specified which will than route the output to the JES input queue. You will have to write incorrectly formatted JCL including the jobcard and the last // to make things work. Closing the TDQ should send the current contents off to JES.

However, I'd prefer you to use the API provided by CICS to do this operation. There are some XC SPOOL commands that do what you want. You just use the XC SPOOLOPEN OUTPUT to create the "job", put in the cards via XC SPOOLWRITE (including the last //) and then send the job by closing with XC SPOOLCLOSE. If you need to get the output back into CICS, then use the XC SPOOLOPEN INPUT and XC SPOOLREAD commands.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts How to get a stack trace on a looping... ABENDS & Debugging 5
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts Calling an Open C library function in... CICS 1
No new posts How to 'Ping' a CICS region in JCL CICS 2
Search our Forums:

Back to Top