Email notification on NON Business hours

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
dr.murthy
Participant
Posts: 224
Joined: Sun Dec 07, 2008 8:47 am
Location: delhi

Email notification on NON Business hours

Post by dr.murthy »

Hi,

I have an requirement like my jobs will execute on hourly basis incase of job getting abort email alert needs to be send , this alerts should be send during non business hours only.
could you please sugestme ho to restrice this in datastage...

Thanks in advance...
D.N .MURTHY
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Create job designs that don't abort. Then, if they abort for environmental reasons, you can trap the job status in the controlling sequence and send email based on any conditions you wish. Implement the condition logic in a Nested Condition activity.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
dr.murthy
Participant
Posts: 224
Joined: Sun Dec 07, 2008 8:47 am
Location: delhi

Post by dr.murthy »

Thanks ray,

Is ther any way to check
if day is not in (sat,sun) and time between (08:00 20:00)
from current timestamp vaue in datastage.
D.N .MURTHY
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Of course. But tell me, what happens to these alerts when they happen during business hours? Are they simply ignored, as in not sent?
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Code: Select all

Left(Oconv(Date(),"DWB"),1) <> "S" And (Time < Iconv("08:00","MT") Or Time() > Iconv("20:00","MT"))
This could be a User Variable definition expression.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply