Hi,
I am still ambigious with dependancy jobs please help out in the below scenerio.
Suppose there are two jobs A and B, which runs on sunday and daily respectively and having dependences between them.Now after completion of job A on sunday that should trigger to daily excuting job B
Now my question is how the job B takes the condion of job A on remaining days
If i place the **** in condition panel it will excute the job B even the job A fail but that should not happen.
I heard about MAYBE condition explain how it going to works here
can u kindly suggest which is the best solution for my requiremnt
Thanks
ppraveen
dependency jobs
ppraveen,
One other thing you can do is schedule JOB B (daily job) to order in every day except for Sunday. Then Schedule JOB A (weekly job) to order in on Sunday AND in the steps tab create when job ok "force job" and force job B in to run at that time. This way you don’t need to setup a direct dependency.
One other thing you can do is schedule JOB B (daily job) to order in every day except for Sunday. Then Schedule JOB A (weekly job) to order in on Sunday AND in the steps tab create when job ok "force job" and force job B in to run at that time. This way you don’t need to setup a direct dependency.
You don’t need a condition at all...
As I understand your requirements:
B runs every day
A runs only on Sunday
On Sunday B is only dependent on A completion
... So if you:
Schedule B to run every day - except Sunday
Schedule A to only run Sunday
Set A to force order in B when it finishes successfully
... this would fulfill your requirements as I understand them above. No need for a condition because that would prevent B from running any other day. You can still put a start time in Job B if needed.
As I understand your requirements:
B runs every day
A runs only on Sunday
On Sunday B is only dependent on A completion
... So if you:
Schedule B to run every day - except Sunday
Schedule A to only run Sunday
Set A to force order in B when it finishes successfully
... this would fulfill your requirements as I understand them above. No need for a condition because that would prevent B from running any other day. You can still put a start time in Job B if needed.
ppraveen,
I must let you in one thing.... A job posts the condition only if it has completed fine. No job posts condition if it is abended , unless it is specified in the steps tab.
However, if your job posts the condition on abend, then the best option here would be to specify the condition in the steps tab.
In the steps tab of A job mention the below command
On Stmt* Code OK
Do Condition AB STAT +
And in the B job give the incondition as AB STAT and do not give an out condition.
A condition would stay in condition table only for a max of 5 days, unless it is removed. Hence I am using STAT instead of MAYBE, **** or any other option, because it will retain the condition forever (until and unless it is removed).
And split the B job into two , one which runs everyday except Saturday and the one which runs on Saturday, in the Saturday run specify the OUT condition AB STAT - (with a minus) to remove the condition from condition table. So that the next day,ie Sunday, the B job would wait for the A jobs run to complete.
Let me know if you still have doubts.
(And yes there is no MAYBE option in Control m)
Thx
I must let you in one thing.... A job posts the condition only if it has completed fine. No job posts condition if it is abended , unless it is specified in the steps tab.
However, if your job posts the condition on abend, then the best option here would be to specify the condition in the steps tab.
In the steps tab of A job mention the below command
On Stmt* Code OK
Do Condition AB STAT +
And in the B job give the incondition as AB STAT and do not give an out condition.
A condition would stay in condition table only for a max of 5 days, unless it is removed. Hence I am using STAT instead of MAYBE, **** or any other option, because it will retain the condition forever (until and unless it is removed).
And split the B job into two , one which runs everyday except Saturday and the one which runs on Saturday, in the Saturday run specify the OUT condition AB STAT - (with a minus) to remove the condition from condition table. So that the next day,ie Sunday, the B job would wait for the A jobs run to complete.
Let me know if you still have doubts.
(And yes there is no MAYBE option in Control m)
Thx