Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
DOS/VSE CICS/BATCH

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: DOS/VSE CICS/BATCH
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    Post subject: Re: DOS/VSE CICS/BATCH
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 0 Mon Sep 18, 2017 4:31 pm
No new posts Generate public-private key in batch ... vasanthz All Other Mainframe Topics 3 Fri Sep 15, 2017 9:20 am
No new posts Working with hex values in Filemanage... Emile Straker IBM Tools 0 Tue Sep 12, 2017 1:42 am
No new posts Julian Date to CICS ABSTTIME blayek CICS 3 Wed Aug 30, 2017 11:15 pm
No new posts Need to track the CICS transaction fr... sam8051 CICS 3 Mon Aug 07, 2017 3:11 pm

Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us