View previous topic :: View next topic
|
Author |
Message |
veena_nagesh2002 Warnings : 1 Active User
Joined: 07 May 2005 Posts: 110 Location: hyderabad
|
|
|
|
I have job with two steps and both steps are submitting two different jobs
Is it possible to execute the step2 based on completion of job (RC) which is submitted in the prior step. if so can some body provide me the details |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
NO!
cross jobs step-condition-code checking is possible ( to some extent ) only thru a scheduler |
|
Back to top |
|
|
veena_nagesh2002 Warnings : 1 Active User
Joined: 07 May 2005 Posts: 110 Location: hyderabad
|
|
|
|
thanks for quick reply
so there is no solution apart from scheduler |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
enrico-sorichetti wrote: |
NO!
cross jobs step-condition-code checking is possible ( to some extent ) only thru a scheduler |
But if the job with the RC in question is submitting the second job, can the RC be passed as a SET type parameter? |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
why have a job submit another 2 jobs ? Why not submit the real job and if rc of 0 then submit the next job.
Gerry |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
gcicchet wrote: |
why have a job submit another 2 jobs ? Why not submit the real job and if rc of 0 then submit the next job. |
That sounds like "there is no solution apart from scheduler"....... |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
even a scheduling tool would not fix this problem, how would you prevent step2 from executing ?
Gerry |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
gcicchet wrote: |
even a scheduling tool would not fix this problem, how would you prevent step2 from executing? |
No imagination?
Think about what the OP is trying to do, imagine a solution....
It's fun to play with problems as they 'stage' in your mind.....grin..... |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Make it all one biggggggggggggggg jobby and use conditional execution |
|
Back to top |
|
|
tchen40
New User
Joined: 12 Sep 2007 Posts: 30 Location: Los Angeles, Ca
|
|
|
|
What we have currently is -
Job A will submit jobs B and C. We want job C to run based on conditions from B.
My solution is have job A submit job B... The submission of job C is a step in job B and that step that'll submit the job has the COND parm in it coded for whatever condition it is that you'll want job C to run. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
What is the reason for these jobs submitting each other?
Sounds like a single job with proper conditon code testing would work just fine |
|
Back to top |
|
|
tchen40
New User
Joined: 12 Sep 2007 Posts: 30 Location: Los Angeles, Ca
|
|
|
|
well, as I understand it... Job A curently submits B and C... veena_nagesh2002 wants job C submitted conditional of the RC of job B. How can job A know what the return code of job B is ? Not to mention we don;t even know how ling it would take job B to finish. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
How can job A know what the return code of job B is ? Not to mention we don;t even know how ling it would take job B to finish. |
If this was implemented as a single job with condition code testing, it would not matter. Step(s)A would run, then step(s)B, then step(s)C as determined by the COND= testing all within the same job.
Just because something runs "some way", does not mean it has to run that way forever. If the requirement has changed or is now better understood, it may make good sense to modify the process. |
|
Back to top |
|
|
tchen40
New User
Joined: 12 Sep 2007 Posts: 30 Location: Los Angeles, Ca
|
|
|
|
veena_nagesh2002 wrote: |
Is it possible to execute the step2 based on completion of job (RC) which is submitted in the prior step. if so can some body provide me the details |
I don't believe you understand what's required here. Veena doesn't care about the step that submits the job. It's always going to be 0. Then step 3 which submits job C will always run.
He wants to have job C submitted based on the return codes that job B gets. not what the step that submitted job B gets (which will always be 0). And I'll bet without even knowing what it is that job B does, step 3 would've already submitted job C before job B is even done. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
I don't believe you understand what's required here. |
Sorry, but i believe i completely understand what is needed - at least from a business perspective.
What i do not understand is the stubbornness (not Veena's - no response for a while from Veena, but yours) to maintain/implement the 3 job architecture. I see no real reason to try to dance around the current issue. If all is done in one job, all of the "scheduling" issues go away.
Maybe Veena will explain why there is a need to run 3 separate jobs. . . If not, it is all just speculaton. |
|
Back to top |
|
|
veena_nagesh2002 Warnings : 1 Active User
Joined: 07 May 2005 Posts: 110 Location: hyderabad
|
|
|
|
sorry for late reply.
This is production requirement only. more over we have schedular job which submits the jobs one after the other based status of the incoming files. To be clear the job A will submit job B and C in two different steps i would like to execute step2 of job A needs to executed based on the return code of job B but not the step 1 of job A.
let me know if you need more details |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
To be clear the job A will submit job B and C in two different steps i would like to execute step2 of job A needs to executed based on the return code of job B but not the step 1 of job A |
Sorry, this is not clear. . Please re-read what you posted and clarify.
Quote: |
let me know if you need more details |
I still see no reason for the convoluted solution (i'm probably missing something). Why can this not be done in a single job with the proper conditon code testing? That it has already been set up as 3 jobs is not a "why". What technical or business reason is there for 3 jobs? |
|
Back to top |
|
|
|