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
 
How to Invoke a job from a main job?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
prasanth_urs

New User


Joined: 04 Dec 2006
Posts: 44
Location: Pune,India

PostPosted: Tue Mar 13, 2007 11:07 am    Post subject: How to Invoke a job from a main job?
Reply with quote

Can anyone of you please provide solution for this issue??

I have to invoke a job from a main job.

Is it possible?? if so, Please provide the syntax or an example?

Also please tell me whether any parameters (like the filenames) can be passed while invoking the job from the main job?
Back to top
View user's profile Send private message

agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 686
Location: Earth

PostPosted: Tue Mar 13, 2007 11:16 am    Post subject:
Reply with quote

Search on the forum with
IEBGENER or sysout = (*,INTRDR)
You will get that. This is disscussed many times already.
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Tue Mar 13, 2007 11:28 am    Post subject:
Reply with quote

Hi There,


You can add the following step in ur main jcl

//SUB01 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT1 DD DSN=Name of the dataset that contain jcl,DISP=SHR
//SYSUT2 DD SYSOUT=(A,INTRDR),DCB=(LRECL=80,BLKSIZE=80)
//
Back to top
View user's profile Send private message
prasanth_urs

New User


Joined: 04 Dec 2006
Posts: 44
Location: Pune,India

PostPosted: Tue Mar 13, 2007 11:33 am    Post subject:
Reply with quote

Thanks Ekta,

But the other query is still on.

If i have to pass a file from the main Jcl to the invoking jcl then what is to be done??
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Tue Mar 13, 2007 5:44 pm    Post subject: Re: How to Invoke a JCL from a main JCL??
Reply with quote

Then your main job is going to have to both create and submit the subsequent job. JCL doesn't take "parameters" pased from another job.

You may want to look into using the INCLUDE and SET parameters as a possible way to define a dataset name.
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 -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts INVOKE WEBSERVICE error danik56 CICS 11 Thu Mar 09, 2017 11:52 am
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm
No new posts Missing Java main class akg Java & MQSeries 3 Wed May 25, 2016 4:05 pm
No new posts Cobol Sub-Program and Main-Program Chetan Kumar Mainframe Interview Questions 7 Sat Oct 17, 2015 10:48 am
No new posts RESP 13 and RESP 3 : webservice invok... maxsubrat CICS 1 Fri Apr 03, 2015 2:57 pm

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