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
 

 

Merge Jobs into a single job.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
prasanth_urs

New User


Joined: 04 Dec 2006
Posts: 44
Location: Pune,India

PostPosted: Tue Apr 05, 2011 4:31 pm    Post subject: Merge Jobs into a single job.
Reply with quote

Hi all,

Consider the scenario..

The dataset A.B.C contains Jobs J1, J2, J3....J99

For a particular process, I need to run jobs in a particular sequence
for example J1,J2,J3,J20,J21,J40,J77,J99...

Could you please tell me how can I trigger this using a single job instead of submitting one by one?

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

Garry Carroll

Active Member


Joined: 08 May 2006
Posts: 988
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Tue Apr 05, 2011 4:50 pm    Post subject:
Reply with quote

Use a scheduling package to do this!!

Alternatively, you might kludge this by adding a step at the end of each job to submit the next job to the internal reader......

Garry.
Back to top
View user's profile Send private message
prasanth_urs

New User


Joined: 04 Dec 2006
Posts: 44
Location: Pune,India

PostPosted: Tue Apr 05, 2011 4:53 pm    Post subject:
Reply with quote

Hi Garry,

agreed that scheduling is an option..

but right now I want to solve this using a jcl itself..

By adding an internal reader to the end of every job will disturb the current execution and also in case of any change, have to change all the jobs.

Right now, I am looking to create a new job which will call the jobs one by one if the RC=0.

could you please help me with that?
Back to top
View user's profile Send private message
Garry Carroll

Active Member


Joined: 08 May 2006
Posts: 988
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Tue Apr 05, 2011 4:55 pm    Post subject:
Reply with quote

Quote:
could you please help me with that?


I'm afraid not. There would be huge effort required and that's why we almost all use scheduling.

Garry.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1712
Location: UK

PostPosted: Tue Apr 05, 2011 5:20 pm    Post subject:
Reply with quote

I posted a rexx solution some days/weeks back.
Back to top
View user's profile Send private message
prasanth_urs

New User


Joined: 04 Dec 2006
Posts: 44
Location: Pune,India

PostPosted: Tue Apr 05, 2011 5:59 pm    Post subject:
Reply with quote

Nic,

could you please give me the path for that rexx pls?

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

Global Moderator


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

PostPosted: Tue Apr 05, 2011 8:09 pm    Post subject:
Reply with quote

search for Nic Clouston posts........................
you are welcome
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1712
Location: UK

PostPosted: Wed Apr 06, 2011 1:23 am    Post subject:
Reply with quote

Well, I just did and cannot find it on any of the 3 forums I am active on. icon_redface.gif Maybe I just dreamt it. But I was working on it the other day - docco etc. If you PM me I can try sending it but there is no guarantee of a quick turn-around.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1712
Location: UK

PostPosted: Fri Apr 08, 2011 7:24 pm    Post subject:
Reply with quote

Prasanth

Did you get my file? Did it meet your needs?
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Fri Apr 08, 2011 7:35 pm    Post subject: Re: Merge Jobs into a single job.
Reply with quote

prasanth_urs wrote:
Hi all,

Consider the scenario..

The dataset A.B.C contains Jobs J1, J2, J3....J99

For a particular process, I need to run jobs in a particular sequence
for example J1,J2,J3,J20,J21,J40,J77,J99...

Could you please tell me how can I trigger this using a single job instead of submitting one by one?

Thanks
Prasanth


I would do in this way,

I will have one file with just sequence of job names I want to execute

And other file as actual jcl with all the jobs.

using DFSORT,have both the files as input and output as job file with unwanted jobs stripped out...
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1712
Location: UK

PostPosted: Fri Apr 08, 2011 9:49 pm    Post subject:
Reply with quote

He doesn't want to strip out jobs - he just wants to submit them automatically without using a scheduling package. My little rexx program does that including jobs with multiple predecessors and/or successors.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Sat Apr 09, 2011 5:13 pm    Post subject:
Reply with quote

Are you trying to do all this in Production Environment?
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1712
Location: UK

PostPosted: Wed Apr 20, 2011 3:15 pm    Post subject:
Reply with quote

Well, is it ok?
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1712
Location: UK

PostPosted: Thu May 12, 2011 4:52 pm    Post subject:
Reply with quote

How rude of people to not say 'thank you' when they are given a bit of code. I bet his mum would not be proud of him if she knew. Never mind - I just will not do it again and I will not tell him about the disasterous bug in it! That makes me happy icon_biggrin.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Thu May 12, 2011 8:53 pm    Post subject: Reply to: Merge Jobs into a single job.
Reply with quote

in these cases the wrath I prefer is ...
that all your bytes lose their parity icon_biggrin.gif
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 Two Selects in a single select query Rohit Umarjikar DB2 1 Fri Nov 04, 2016 8:46 pm
No new posts Single COPY CICS TS datasets and when... Kyle Carroll CICS 2 Tue Oct 11, 2016 9:47 pm
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 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