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 Usergroups Profile Log in to check your private messages Log in
 

 

Calling a Batch Program from a online CICS program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: Calling a Batch Program from a online CICS program
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: 288
Location: Basel, Switzerland

PostPosted: Fri Apr 07, 2006 6:53 pm    Post subject:
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    Post subject: Re: Calling a Batch Program from a online CICS program
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts CICS Transaction Timeout Hooman24 CICS 2 Sun Apr 16, 2017 2:16 pm
No new posts HLIST Utility In Batch Virendra Shambharkar TSO/ISPF 4 Fri Apr 07, 2017 3:38 pm
No new posts Batch job tuning sgandhla Testing & Performance analysis 5 Fri Mar 24, 2017 9:41 pm


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