send an e-mail if value is not equal to 0

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
Dodge
Participant
Posts: 4
Joined: Sun Apr 18, 2010 4:59 pm

send an e-mail if value is not equal to 0

Post by Dodge »

I have a single value in a file. I have to read that file and send an e-mail to the group if that value is not equal to '0'. I have to send the value in the e-mail body.

Thank you in advance....
KoolKid
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Sequence.

Execute Command activity to read the file, with a custom trigger based on the command's output leading to a Notification or Routine activity.
Last edited by ray.wurlod on Mon Aug 22, 2011 3:30 pm, edited 1 time in total.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Has the 8.x version opened up the email body in the notification stage such that it can support parameters or variable data of any kind? Last I knew, if you wanted data in the body you had to write a routine to call DSSendMail() rather than use the Notification Activity stage.
-craig

"You can never have too many knives" -- Logan Nine Fingers
SURA
Premium Member
Premium Member
Posts: 1229
Joined: Sat Jul 14, 2007 5:16 am
Location: Sydney

Re: send an e-mail if value is not equal to 0

Post by SURA »

As chulett said, routine to call DSSendMail() is easy.

In Sever jobs you can send it inside the Transformer using built in routine to send email where as in PX we don't.


DS User
Post Reply