Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
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
 
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: 290
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 ASP3 ABEND IN CICS Vedant CICS 0 Fri Oct 20, 2017 3:18 pm
No new posts Identifying Interfaces in CICS/mainframe Ashishpanpaliya CICS 5 Fri Oct 13, 2017 3:21 pm
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Partial color change of a field in CI... waseem0424 CICS 5 Fri Sep 29, 2017 7:56 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us