View previous topic :: View next topic
|
Author |
Message |
Nitish_sharma
New User
Joined: 01 Dec 2009 Posts: 2 Location: Bangalore
|
|
|
|
Hi,
I am using abandon dependency to drop the dependency of predecessors at a specific time if the predecessors are not complete by then..
$Job A run daily rel(Job B)
Job B
Run daily
rel job c
Abandon dependencies 6:00
End job
Now the Job C will get released either when Job completes before 6 or if the job B doesn't completes by 5:59 , Abandon dependency will ensure that job C will be release at 6:00 even if Job A,B is not complete..Since it will drop the dependency (which is Job A) on Job B at 6.
Now, my requirement is to trigger an email job only when dependency is dropped at 6.. If the Job C completes without dependency getting dropped before 6 then the email job should not get triggered..
Kindly let me know which caluse shall i use?
Thanks, |
|
Back to top |
|
|
alan_blore
New User
Joined: 01 Aug 2007 Posts: 50 Location: Hosur
|
|
|
|
Hi Nitish,
ALERT's in ESP can do this for you.
I'm not if you are using ESP Work Station or a TSO console for this.
In case of ESP Work Station - you can find the NOTIFICATION tab in PROCESS.INPUT dialog when you right click on the job to mention the ALERT ID which will invoked when the job is overdue.
If in case of TSO console -
1. Use the NOTIFY statement in an ESP Application to identify when to
trigger the Alert.
2. Define the Alert with the ALERTDEF command.
3. Define the Event triggered by the Alert.
Sample -
"NOTIFY OVERDUE ALERT(ABC1)"
"ALERTDEF ADD ID(ABC1) EVENT(ESPP.MAILEVT)"
"EVENT ID(MAILEVT)"
Thanks
Palani |
|
Back to top |
|
|
alan_blore
New User
Joined: 01 Aug 2007 Posts: 50 Location: Hosur
|
|
|
|
Hi Nithish,
Try searching for NOTIFY in your ESP procedure/events library and try to reuse the same.
As per conventions, the events could be stored in ESP*.PROCLIB where * could be P,Q,M for Production, Test etc...
Thanks
Palani |
|
Back to top |
|
|
Nitish_sharma
New User
Joined: 01 Dec 2009 Posts: 2 Location: Bangalore
|
|
|
|
My ESP is in Mainframes TSO.
For removing dependency, have written below is the code-
$JOB DUMMY.3 RUN(DAILY) REL(DUMMY.8)
JOB DUMMY.8
RUN DAILY
RELEASE (DUMMY.4)
ABANDON DEPENDENCIES 06:00
ENDJOB
The above lines of code will ensure the JOB DUMMY.4 gets released at 6:00 even if DUMMY.3 doesn't completes by 6:00. Since, abandon clause will drop the dependency of DUMMY.3 on DUMMY.8 at 6:00.
Now, i want to trigger an email job(which will notify users that dependency has been dropped) only when dependency gets dropped at 6:00. This email job should not get triggered when DUMMY.3 releases DUMMY.4 normally before 6:00.
Like If DUMMY.3 is not complete and DUMMY.4 is complete at 6:01 then release email JOB
else if DUMMY.3 is complete and DUMMY.4 is complete before 6:01 then
DON'T release email JOB.
Can you help me like, How can i set up the condition for sending the alert or triggering an email job(which will notify users that dependency has been dropped whenever dependency gets dropped)? |
|
Back to top |
|
|
|