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
 

 

JCL to submit 3 jobs one after another
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
madhu2010

New User


Joined: 30 May 2010
Posts: 10
Location: Bangalore

PostPosted: Tue Jun 01, 2010 9:28 pm    Post subject: JCL to submit 3 jobs one after another
Reply with quote

Hii,

Can any body help to code a JCL to run 3 jobs one after another.

Thanks
Madhu
Back to top
View user's profile Send private message

CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Tue Jun 01, 2010 9:31 pm    Post subject: Re: JCL to submit 3 jobs one after another
Reply with quote

madhu2010 wrote:
Can any body help to code a JCL to run 3 jobs one after another.
Other than one JOB and three EXECs?
Back to top
View user's profile Send private message
madhu2010

New User


Joined: 30 May 2010
Posts: 10
Location: Bangalore

PostPosted: Tue Jun 01, 2010 9:37 pm    Post subject:
Reply with quote

Thanks for the response.

First job's output file feeding to Second job, Second Job Output is input to 3rd job. I want to submit first job, other two will be submitted automatically one after the other.

Also please let me know how it works with 1 job and 3 Execs.

Thanks in advance.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7908
Location: Bellevue, IA

PostPosted: Tue Jun 01, 2010 9:43 pm    Post subject:
Reply with quote

Quote:
I want to submit first job, other two will be submitted automatically one after the other.
Does this mean you're using a scheduler already? Or, this is what you want to happen? Or, you are submitting the second and third jobs through the internal reader? When you are not clear about what you want versus what you've done already, it makes helping you much harder.
Back to top
View user's profile Send private message
madhu2010

New User


Joined: 30 May 2010
Posts: 10
Location: Bangalore

PostPosted: Tue Jun 01, 2010 9:48 pm    Post subject:
Reply with quote

I am not using any scheduler. I want to happen this. I want to know if I can write a jcl to do this.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7908
Location: Bellevue, IA

PostPosted: Tue Jun 01, 2010 9:52 pm    Post subject:
Reply with quote

Certainly it can be done. If you want them running sequentially, add a step at the end of the first job to copy the second job's JCL to the internal reader and add a step to the end of the second job to submit the third job's JCL to the internal reader.
Back to top
View user's profile Send private message
madhu2010

New User


Joined: 30 May 2010
Posts: 10
Location: Bangalore

PostPosted: Tue Jun 01, 2010 9:54 pm    Post subject:
Reply with quote

Could you please share the jcl code for it.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Tue Jun 01, 2010 9:54 pm    Post subject:
Reply with quote

madhu2010 wrote:
First job's output file feeding to Second job, Second Job Output is input to 3rd job. I want to submit first job, other two will be submitted automatically one after the other.
There are various ways to do what you want, but it depends on what you mean by 'feeding' and 'output' and 'input'.....
Back to top
View user's profile Send private message
madhu2010

New User


Joined: 30 May 2010
Posts: 10
Location: Bangalore

PostPosted: Tue Jun 01, 2010 9:58 pm    Post subject:
Reply with quote

I mean that Job 1 has one input, its output will be used as 2nd job input, so on.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7908
Location: Bellevue, IA

PostPosted: Tue Jun 01, 2010 10:03 pm    Post subject:
Reply with quote

Quote:
Could you please share the jcl code for it.
This is a HELP forum, not a WRITE-THE-CODE-FOR-YOU forum. Unless you are willing to pay the professionals (and the rate is typically 1000 U.S. dollars per day or fraction thereof) who respond here for their work product (which is what you are asking for), please don't ask for code.
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 Jun 01, 2010 10:07 pm    Post subject:
Reply with quote

Hello,

Why do you want to use multiple Jobs when one Job with 3 steps would do what you want. . .?
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Tue Jun 01, 2010 10:08 pm    Post subject:
Reply with quote

madhu2010 wrote:
I mean that Job 1 has one input, its output will be used as 2nd job input, so on.
Then what is wrong with one JOB and three EXECs?
The output file from the first job is available to the second job immediately after the first job finishes and the second job starts. Same goes for the second and third jobs.
Back to top
View user's profile Send private message
madhu2010

New User


Joined: 30 May 2010
Posts: 10
Location: Bangalore

PostPosted: Tue Jun 01, 2010 10:14 pm    Post subject:
Reply with quote

Hi Robert

I agree with you. But as you suggested -

Quote:
add a step at the end of the first job to copy the second job's JCL to the internal reader and add a step to the end of the second job to submit the third job's JCL to the internal reader.


I am not getting how to write.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Tue Jun 01, 2010 10:20 pm    Post subject:
Reply with quote

madhu2010 wrote:
I am not getting how to write.
Make a Job Executable through another job?
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 Jun 01, 2010 10:52 pm    Post subject:
Reply with quote

Hello,

To repeat:
Quote:
Why do you want to use multiple Jobs when one Job with 3 steps would do what you want. . .?


Is there some business reason to complicate things with multiple jobs to provide a single job result? Most organizations do not want to support multiple jobs when one will provide the same result. . . icon_confused.gif
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7908
Location: Bellevue, IA

PostPosted: Tue Jun 01, 2010 10:57 pm    Post subject:
Reply with quote

If you're going to list JCL as one of your skills on this forum, you should be able to write a simple step to copy an input file to the internal reader. Anything you don't understand in that statement can be found in the JCL manuals (link at the top of the page), or by doing a forum search on internal reader.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Jun 01, 2010 10:59 pm    Post subject:
Reply with quote

Quote:
rate is typically 1000 U.S. dollars per day or fraction thereof


no fractions,
and it's €1200/day
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7908
Location: Bellevue, IA

PostPosted: Tue Jun 01, 2010 11:03 pm    Post subject:
Reply with quote

I stand corrected, Dick! At least the euro has been getting cheaper lately against the dollar -- now I just need to go somewhere that uses them! icon_biggrin.gif
Back to top
View user's profile Send private message
suny_sn1

New User


Joined: 26 Jun 2007
Posts: 6
Location: India

PostPosted: Wed Jun 02, 2010 12:13 am    Post subject:
Reply with quote

regarding INTRDR

hope this help...i am willing to do this at 50% discount icon_biggrin.gif
Back to top
View user's profile Send private message
Manish Kumar Gupta

New User


Joined: 19 Feb 2008
Posts: 6
Location: Bangalore

PostPosted: Thu Jun 03, 2010 12:29 am    Post subject:
Reply with quote

You can also use Terminal Monitoring Program like IKJEFT1B to submit the job.
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
Goto page 1, 2, 3  Next
Page 1 of 3

 

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 Don't allow CICS to submit batch jobs prino JCL & VSAM 5 Mon Jul 25, 2016 3:26 pm
No new posts Predicting jobs which are about to re... kpanchabhai85 DFSORT/ICETOOL 4 Thu Jun 30, 2016 7:51 pm
No new posts How to find jobs that are in schedule... anilkumar922 All Other Mainframe Topics 5 Tue Jun 28, 2016 10:01 am
This topic is locked: you cannot edit posts or make replies. Jobs At HCL Technologies - Weekend Dr... mjadwani2785 Mainframe Jobs 0 Thu Feb 18, 2016 8:31 pm


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