View previous topic :: View next topic
|
Author |
Message |
prasanth_urs
New User
Joined: 04 Dec 2006 Posts: 44 Location: Pune,India
|
|
|
|
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 |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1205 Location: Dublin, Ireland
|
|
|
|
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 |
|
|
prasanth_urs
New User
Joined: 04 Dec 2006 Posts: 44 Location: Pune,India
|
|
|
|
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 |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1205 Location: Dublin, Ireland
|
|
|
|
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 |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
|
|
|
|
I posted a rexx solution some days/weeks back. |
|
Back to top |
|
|
prasanth_urs
New User
Joined: 04 Dec 2006 Posts: 44 Location: Pune,India
|
|
|
|
Nic,
could you please give me the path for that rexx pls?
Thanks
Prasanth |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
search for Nic Clouston posts........................
you are welcome |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
|
|
|
|
Well, I just did and cannot find it on any of the 3 forums I am active on. 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 |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
|
|
|
|
Prasanth
Did you get my file? Did it meet your needs? |
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
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 |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Are you trying to do all this in Production Environment? |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
|
|
|
|
Well, is it ok? |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
|
|
|
|
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 |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10889 Location: italy
|
|
|
|
in these cases the wrath I prefer is ...
that all your bytes lose their parity |
|
Back to top |
|
|
|