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
 
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: 8165
Location: East Dubuque, Illinois, USA

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: 10327
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: 182
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: 1894
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: 965
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: 10327
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: 445
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 ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
No new posts PLI - printing from multiple programs Pedro PL/I & Assembler 8 Fri Sep 08, 2017 6:36 am
No new posts Repeat part of record multiple times Learncoholic DFSORT/ICETOOL 4 Tue Aug 29, 2017 11:33 am
No new posts self-restarting jobs in OPC jzhardy IBM Tools 1 Mon Aug 21, 2017 10:15 am
No new posts Match two files using multiple keys a... santoshks1987 SYNCSORT 11 Fri Aug 18, 2017 10:50 am

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