IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Submit Multiple Jobs


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
athulvijay

New User


Joined: 01 Jul 2010
Posts: 17
Location: PUNE

PostPosted: Mon Nov 19, 2012 2:26 pm
Reply with quote

I need to submit 10 jobs in parallel; there jobs are for different purpose but should be submitted together, I do not want to submit it manually nor combine it in a single job. Is there any way to get this done using a JCL? All 10 jobs will be called inside a JCL so that submitting master jcl will execute all 10 jobs?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Mon Nov 19, 2012 3:28 pm
Reply with quote

Quote:
All 10 jobs will be called inside a JCL so that submitting master jcl will execute all 10 jobs?
You do NOT understand JCL. Each job, once submitted, runs in an independent address space and there is no such thing as "calling a job" -- once submitted, the job either runs (or doesn't) totally apart from every other job in the system.

Use your site job scheduler (CA-7, Tivoli, Zeke, or whatever) to submit all 10 jobs.
Back to top
View user's profile Send private message
athulvijay

New User


Joined: 01 Jul 2010
Posts: 17
Location: PUNE

PostPosted: Mon Nov 19, 2012 4:22 pm
Reply with quote

Thanks alot Rob for the info. The below jcl helped me. Even though it do not completely serve my purpose but I am able to submit a Job inside a JCL.

//ASNP7C01 JOB ,'ASNP7C01',CLASS=A,TIME=1440,
// NOTIFY=&SYSUID,
// MSGCLASS=Q
//*
//JCLLIB JCLLIB ORDER=(DATAEV4.CMM.DEV.JCL)
//*
//ASNP7C01 EXEC PROC=CMM3025D
//ASNP7C02 EXEC PROC=CMM3055D
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Nov 19, 2012 9:00 pm
Reply with quote

Hello,

First - his name is Robert - not Rob. . .

What you show does NOT sibmit a JOB inside a JCL. You really need to learn to use the proper terminology . . .

What you show will execute 2 PROCedures one behind the other.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Nov 19, 2012 9:43 pm
Reply with quote

Hello,

Your topic has been split into a new topic for this question.

Quote:
Even though it do not completely serve my purpose but I am able to submit a Job inside a JCL.

If you clearly explain your purpose, someone will have a suggestion . . .
Back to top
View user's profile Send private message
athulvijay

New User


Joined: 01 Jul 2010
Posts: 17
Location: PUNE

PostPosted: Tue Nov 20, 2012 10:31 am
Reply with quote

Thanks alot Dick Scherrer for the suggestion.
CMM3025D, CMM3055D are my JCLs residing at DATAEV4.CMM.DEV.JCL. As you said second jcl will be executed only after successful completion of the first. My aim is to execute all JCLs at same time with out using any scheduler.
Aplogies for using wrong terminology.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Nov 20, 2012 2:55 pm
Reply with quote

from the terminology You used and the scarce understanding of JCL
You might feel more comfortable posting here

ibmmainframeforum.com/index.php
the beginners forum
Back to top
View user's profile Send private message
David Robinson

Active User


Joined: 21 Dec 2011
Posts: 199
Location: UK

PostPosted: Tue Nov 20, 2012 3:09 pm
Reply with quote

If the JCL that you submit has multiple jobcard statements in it, then multiple jobs will be submitted. Wont that acheive what you want?
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Tue Nov 20, 2012 3:13 pm
Reply with quote

Quote:
CMM3025D, CMM3055D are my JCLs

More correctly these are your procedures. The way you worded your post makes it seem that the statements before your first 'EXEC PROC=' are not JCL. They are. And the whole shebang is normally referred to as a job although it is often referred to as 'a JCL' which is semantically wrong as it expands to 'a Job Control Language'.

What you have at the moment is serial execution - each procedure is executed one after the other. The only way to have parallel execution is to have 10 jobs, all with different jobnames and using different datasets (unless DISP=SHR is on common data datasets). You can have all 10 jobs in one member so that you only have to type SUB once.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Nov 20, 2012 7:50 pm
Reply with quote

Hello,

We still do not understand "your purpose" - other than you want to run all of these "at the same time".

Why will you not accept running them serially? What business or technical reason is there to run them all at once? And no, this is Not the "requirement".

The more you try to run concurrently, the more performance impact you generate for the system.
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Tue Nov 20, 2012 8:46 pm
Reply with quote

Besides, as stated earlier, you have no control over when they actually execute, even though you might submit them at the same time.

One job, e.g., might be blocked from a dataset by a job not part of your jobs, over which you therefore have no control.

Or the initiator structure might not be what you need.

Etc. etc. etc...................
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Nov 20, 2012 8:55 pm
Reply with quote

guess it is time to lock the topic...
it is getting nowhere icon_cool.gif
Back to top
View user's profile Send private message
Pete Wilson

Active Member


Joined: 31 Dec 2009
Posts: 580
Location: London

PostPosted: Tue Nov 20, 2012 9:13 pm
Reply with quote

Split it into two jobs, within the same member and submit the one member as per below. Both jobs will be submitted for execution at the same time, but as mentioned they may or may not run concurrently due to initiator constraints or whatever.

//ASNP7C01 JOB ,'ASNP7C01',CLASS=A,TIME=1440,
// NOTIFY=&SYSUID,
// MSGCLASS=Q
//*
//JCLLIB JCLLIB ORDER=(DATAEV4.CMM.DEV.JCL)
//*
//ASNP7C01 EXEC PROC=CMM3025D

//ASNP7C02 JOB ,'ASNP7C01',CLASS=A,TIME=1440,
// NOTIFY=&SYSUID,
// MSGCLASS=Q
//*
//JCLLIB JCLLIB ORDER=(DATAEV4.CMM.DEV.JCL)
//*
//ASNP7C02 EXEC PROC=CMM3055D
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Finding and researching jobs All Other Mainframe Topics 0
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts How to create a list of SAR jobs with... CA Products 3
No new posts Multiple table unload using INZUTILB DB2 2
Search our Forums:

Back to Top