View previous topic :: View next topic
|
Author |
Message |
Praveen_87
New User
Joined: 10 Mar 2011 Posts: 4 Location: india
|
|
|
|
Hi,
I'm new to control-m job scheduling and like to know how to handle the conditional relationship between two jobs.
For example, If Job A and Job B are loading in the same day then Job B has to act as a successor of Job A. If Job A is not loading on a particular day Job B should run without waiting for Job A.
I read about the Adjust conditions in the group level. But i'm not confirm on this one. Please help.. Thanks in Advance.. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Why not run Job A every day and simply end the job on days it need not run, successfully end. Then JobB would run as the successor.
This would of course depend on the logistics of when to run or not run JobA. |
|
Back to top |
|
|
Ed Goodman
Active Member
Joined: 08 Jun 2011 Posts: 556 Location: USA
|
|
|
|
As part of the "NEWDAY" set up for Control-M, our shop runs a job that goes out and finds in-conditions like this and removes them.
So in your case, JOB B would have two in-conditions, named something like:
JOBA-ENDED-OK and JOBA-ENDED-####.
Then, a BMC utility runs each morning an looks for any -#### condition without a matching -OK waiting somewhere on the AJF. It then adds the -OK condition so that JOB B won't get stranded.
Look in your production schedule for jobs that have that #### in the names. That's good evidence that your shop is using the same set up. |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
the Group entity definition in Group scheduling tables contains a field ADJUST CONDITIONS.
If a value of Y is specified in field ADJUST CONDITIONS, Control-M checks the scheduled jobs for unscheduled conditions.
Unscheduled conditions normally added by other jobs in the same Group scheduling table are removed from the IN statements of the scheduled jobs.
Gerry |
|
Back to top |
|
|
Ed Goodman
Active Member
Joined: 08 Jun 2011 Posts: 556 Location: USA
|
|
|
|
That group thing ONLY works for other jobs in the same group definition.
Chances are that if you're dealing with an established system, they aren't using groups.
I use them for everything new, but legacy stuff has never been converted. |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
I thought I made it clear that the ADJUST CONDITIONS applies only to jobs in the same Group scheduling table.
Quote: |
Unscheduled conditions normally added by other jobs in the same Group scheduling table are removed from the IN statements of the scheduled jobs |
Also can you please explain how this works
Quote: |
JOBA-ENDED-OK and JOBA-ENDED-####.
|
I'm assuming you are talking about maybe dependencies and as far as I know these are usually prefixed by a unique symbol.
So what posts the 2 IN conditions ?
Gerry |
|
Back to top |
|
|
Praveen_87
New User
Joined: 10 Mar 2011 Posts: 4 Location: india
|
|
|
|
Thanks for all of your replies..
@Dick,
we can schedule Job A as Dummy on other days but there are lots of jobs(more than 1000). so i'm looking for the alternative..
@Ed,
In our shop, we are coding only one IN condition..
its like GROUPA-JOBA_GROUPB-JOBB ODAT
Job A is creating this condition once it completed. Now my concern is if Job A is not scheduled Job B is waiting for this condition. can you please explain little more about the two IN conditions which you are saying..
@Gerry,
Thanks for your explanation.. I want this scenario for different groups also.. Is there any way to achieve this.. |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
you need to read the manual on Handling Unscheduled conditions and maybe dependancies.
I don't understand what you mean by
Quote: |
I want this scenario for different groups also |
If you understand how to achieve this in one scheduling group table, why is it a problem doing exactly the same in another group scheduling table.
Remember this concept only applies to jobs in the same Group scheduling table.
Gerry |
|
Back to top |
|
|
Praveen_87
New User
Joined: 10 Mar 2011 Posts: 4 Location: india
|
|
|
|
Thanks Gerry.. I was meaning the job A from Group A is depending on Job B from Group B.. |
|
Back to top |
|
|
Ed Goodman
Active Member
Joined: 08 Jun 2011 Posts: 556 Location: USA
|
|
|
|
Gerry,
He's trying to tell you that his JOBA and JOBB come from two different groups, so the group dependency ability can't help him.
The #### stuff I was talking about IS a version of the "maybe dependency" that you mention. However, for some reason, at my shop it was done with a suffix, not a prefix.
Advice to TS: Check your production schedule for conditions with #### in them. Let that lead you in the right direction for your shop. It's importatn that you understand that you are NOT the first person to have this concern, and that it was solved a few decades ago. |
|
Back to top |
|
|
Praveen_87
New User
Joined: 10 Mar 2011 Posts: 4 Location: india
|
|
|
|
Thanks Ed.. |
|
Back to top |
|
|
nandhuaru
New User
Joined: 30 Mar 2009 Posts: 2 Location: Chennai
|
|
|
|
Hi,
I am working in Control-M. Is there any utilities available to add a job from JOBTRAC to Control-M |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1744 Location: Tirupur, India
|
|
|
|
resurrection spree today :-)
Edited: oops, saw 2011 and thought it was 1 year old when actually its only 2 months. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Should still have been a new topic. Nothing to do with answering the original question or points raised therein. |
|
Back to top |
|
|
Ed Goodman
Active Member
Joined: 08 Jun 2011 Posts: 556 Location: USA
|
|
|
|
I'll answer here before the topic gets split.
There is a BMC conversion guide for Jobtrac. For whatever reason, I do not have a copy of it in the same directory where all my other Control-M books are kept.
I would make a concentrated effort to lay your hands on that guide. It will probably have everything you need.
Here's a hint: if your only response to this is to post back here that you don't have access to it, then you are not the person for this job. |
|
Back to top |
|
|
|