Sequence job

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
ketanshah123
Participant
Posts: 88
Joined: Wed Apr 05, 2006 1:04 am

Sequence job

Post by ketanshah123 »

Hi
I want to send a mail notification if any job in Job Actvity in sequence ends with warnings. But I dont wants to use mail notification activity stage.So how can I do it ?Is it possible on Cstom trigger type in Job activity stage through some expression...
If yes then how can I check whether job ends with warning and then how can I send the mail

Thanx in advance
tsn
Participant
Posts: 51
Joined: Wed Jan 10, 2007 1:32 am

Post by tsn »

Use job status to find out the job completed with warnings or not. then you use routine (DSSendMailTester) to send the mail.
with regards,
tsn
ketanshah123
Participant
Posts: 88
Joined: Wed Apr 05, 2006 1:04 am

Post by ketanshah123 »

can you plz provide me the example of DSSendMailTester as I am getting syntax error again and again ...
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

how about telling us what your syntax error is, that might be easier.
ketanshah123
Participant
Posts: 88
Joined: Wed Apr 05, 2006 1:04 am

Post by ketanshah123 »

just getting message general syntax error ...
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

:? Why the heck not just simply use the Notification Activity stage? The 'Tester' routine is just that - for testing.
-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 »

DSSendMailTester is provided precisely so that you can inspect the code and thereby learn the correct syntax for invoking DSSendMail().

Please do so.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
tsn
Participant
Posts: 51
Joined: Wed Jan 10, 2007 1:32 am

Post by tsn »

have you figured it out?
with regards,
tsn
Post Reply