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

Calling a Batch Program from a online CICS program


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Avinash_Gupta

New User


Joined: 11 May 2005
Posts: 26
Location: Hyderabad

PostPosted: Fri Apr 07, 2006 6:12 pm
Reply with quote

Hi,

I want to know if there exists a mechanism to call a BATCH JOB from a CICS program. Also I am aware that we can write a whole set of JCL statements and it can be submitted from online program. But in my case, I already have a batch JOB that needs to be submitted from the online CICS program (may be by invoking a Function Key).
Back to top
View user's profile Send private message
martin9

Active User


Joined: 01 Mar 2006
Posts: 290
Location: Basel, Switzerland

PostPosted: Fri Apr 07, 2006 6:53 pm
Reply with quote

hy Avinash_Gupta,

yes.
use the cics commands
SPOOLOPEN
SPOOLWRITE
SPOOLCLOSE
you have to choose the internal reader as output destination,
the jcl you pass will be executed immediately.

martin9
Back to top
View user's profile Send private message
Avinash_Gupta

New User


Joined: 11 May 2005
Posts: 26
Location: Hyderabad

PostPosted: Tue May 02, 2006 6:33 pm
Reply with quote

Hi,

We are trying to generate the whole job by writing the JCL statements. Does the internal reader concept come in it too?? Also could you please explain the concept of internal reader.

If we are generating a set of job statements in a program the JCL that is getting generated should be written in a File or is it directly executed in the spool at runtime?

And can you give us an example of any batch job being submitted from online program??

Thank you.
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 -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
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
Search our Forums:

Back to Top