MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Submitting a JCL thru a JCL

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
abhisun
Beginner


Joined: 20 Nov 2003
Posts: 21
Topics: 9

PostPosted: Fri Jan 02, 2004 6:20 am    Post subject: Submitting a JCL thru a JCL Reply with quote

Hi,

Is there any possibility of submitting a job thru a running job. I need a JCL which I will submit manually using 'sub' command & then that JCL will trigger another JCL/job with a different job name so that both jobs will run parallely.

This is required to save time doing things parallely and to avoid manual submission of so many JCLs.

Thanks
Abhi
Back to top
View user's profile Send private message
RobertL
Beginner


Joined: 18 Nov 2003
Posts: 22
Topics: 0
Location: Lisbon, Portugal

PostPosted: Fri Jan 02, 2004 7:47 am    Post subject: Reply with quote

Hi Abhi,

Try this...

Code:

//SUBMIT   EXEC PGM=IEBGENER
//SYSIN     DD  DUMMY
//SYSUT1    DD  DSN=your.jcllib(NEXTJOB),DISP=SHR
//SYSUT2    DD  SYSOUT=(A,INTRDR)
//SYSPRINT  DD  SYSOUT=*



This will submit NEXTJOB in your.jcllib when executed.

Hope this helps.
Regards,
Robert
Back to top
View user's profile Send private message
abhisun
Beginner


Joined: 20 Nov 2003
Posts: 21
Topics: 9

PostPosted: Fri Jan 02, 2004 8:11 am    Post subject: Reply with quote

Thank you very much Robert !! It worked !! I appreciate your help !! Thanks again !! Smile
Back to top
View user's profile Send private message
nex
Beginner


Joined: 22 May 2003
Posts: 8
Topics: 4

PostPosted: Sat Jan 03, 2004 2:51 pm    Post subject: Reply with quote

A question here :
In case the job which is being invoked from the first job is also having the suffix after tso id in job card similar to the invoking job , then wouldn't the invoked job run after invoking job gets completed ? (i.e. not in parallel)
Back to top
View user's profile Send private message
ravikumar_sri2001
Beginner


Joined: 06 Dec 2002
Posts: 117
Topics: 44
Location: Chennai,India

PostPosted: Sun Jan 04, 2004 7:38 am    Post subject: Reply with quote

nex,

Yes, you are correct.

Thanks,
Ravikumar.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Sun Jan 04, 2004 11:48 am    Post subject: Reply with quote

nex,

If the submitted job also have the same suffix, as the first job, then the submitted job will wait in the queue until the first job completes.

Hope this helps...

cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group