Writing to unix file from datastage sequence

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
NeelimaTalasila
Participant
Posts: 6
Joined: Thu Aug 31, 2006 7:59 am

Writing to unix file from datastage sequence

Post by NeelimaTalasila »

Hi,

We have one requirement of sending a mail attaching the Job Status from datastage. But these mail addresses should be taken from a file.

So can we read the mail addressed from a file and use these addresses in Mail Notify stage?

OR

Can we write Job Status (Job Activity Stage) to a file so that we can send the mail using shell scripting?

Thanks in anticipation,
Thanks n Regards,
Neelima
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Welcome. :D

While both of these can be done, they aren't easily explained in a sentence or two. Rather than reading a list of emails from a file, why not create a 'group' in your email system and use that in the Notification Activity stage instead?

That's the way many people tackle this problem, myself included. The use of the group email simplifies your job and removes the possible need to change the job to change who gets emailed. Whomever admins your email server could easily maintain that group for you.
-craig

"You can never have too many knives" -- Logan Nine Fingers
thumsup9
Charter Member
Charter Member
Posts: 168
Joined: Fri Feb 18, 2005 11:29 am

Post by thumsup9 »

As Craig Said, It would be an easy way to create a group id say DWTEAM and use it in Notifcation Activity.Dont forget to check box 'Include job status in email'
Post Reply