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
 

 

Submit Multiple Jobs

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Submit Multiple Jobs
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: 7914
Location: Bellevue, IA

PostPosted: Mon Nov 19, 2012 3:28 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Mon Nov 19, 2012 9:00 pm    Post subject:
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

Site Director


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

PostPosted: Mon Nov 19, 2012 9:43 pm    Post subject:
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Tue Nov 20, 2012 2:55 pm    Post subject: Reply to: Submit Multiple Jobs
Reply with quote

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

http://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: 175
Location: UK

PostPosted: Tue Nov 20, 2012 3:09 pm    Post subject:
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: 1717
Location: UK

PostPosted: Tue Nov 20, 2012 3:13 pm    Post subject:
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

Site Director


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

PostPosted: Tue Nov 20, 2012 7:50 pm    Post subject:
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

Active Member


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

PostPosted: Tue Nov 20, 2012 8:46 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Tue Nov 20, 2012 8:55 pm    Post subject: Reply to: Submit Multiple Jobs
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 User


Joined: 31 Dec 2009
Posts: 437
Location: London

PostPosted: Tue Nov 20, 2012 9:13 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to show message using batch jobs madprasy TSO/ISPF 7 Fri Sep 09, 2016 6:55 pm
No new posts Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm
No new posts Execute multiple DB2 Load commands in... faizm DB2 4 Wed Aug 03, 2016 12:53 pm
This topic is locked: you cannot edit posts or make replies. JCL MULTIPLE STEP EXECUTION QUERY Susanta JCL & VSAM 18 Sat Jul 30, 2016 1:17 pm
No new posts Don't allow CICS to submit batch jobs prino JCL & VSAM 5 Mon Jul 25, 2016 3:26 pm


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