View previous topic :: View next topic
|
Author |
Message |
Avinash_Gupta
New User
Joined: 11 May 2005 Posts: 26 Location: Hyderabad
|
|
|
|
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 |
|
|
martin9
Active User
Joined: 01 Mar 2006 Posts: 290 Location: Basel, Switzerland
|
|
|
|
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 |
|
|
Avinash_Gupta
New User
Joined: 11 May 2005 Posts: 26 Location: Hyderabad
|
|
|
|
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 |
|
|
|