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

Merge Jobs into a single job.


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Tue Apr 05, 2011 4:50 pm
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
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

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Tue Apr 05, 2011 4:55 pm
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: 2455
Location: Hampshire, UK

PostPosted: Tue Apr 05, 2011 5:20 pm
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
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
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: 2455
Location: Hampshire, UK

PostPosted: Wed Apr 06, 2011 1:23 am
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: 2455
Location: Hampshire, UK

PostPosted: Fri Apr 08, 2011 7:24 pm
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
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: 2455
Location: Hampshire, UK

PostPosted: Fri Apr 08, 2011 9:49 pm
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

Superior Member


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

PostPosted: Sat Apr 09, 2011 5:13 pm
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: 2455
Location: Hampshire, UK

PostPosted: Wed Apr 20, 2011 3:15 pm
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: 2455
Location: Hampshire, UK

PostPosted: Thu May 12, 2011 4:52 pm
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

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Thu May 12, 2011 8:53 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to create a list of SAR jobs with... CA Products 3
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts Help in Automating Batch JCL jobs mon... JCL & VSAM 3
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts Submit multiple jobs from a library t... JCL & VSAM 14
Search our Forums:

Back to Top