SendMail in DataStage

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
nvkravi
Participant
Posts: 22
Joined: Mon Jun 09, 2003 12:01 am
Location: India

SendMail in DataStage

Post by nvkravi »

Hi All,
I am new to this Tool. And I need to ask one query here. When I am running a Job or Job Sequence in DataStage5.2, So If this runs successful then I want to send a mail to One person and When It fails, to send another person. So, can you suggest me anyone how to do this? Here I am using both flat files and RDBMS in both Source and Target sides.
Your Inputs would be Valuable.

Thanx and Regards,
Ravi
Peytot
Participant
Posts: 145
Joined: Wed Jun 04, 2003 7:56 am
Location: France

Post by Peytot »

Hi,
in the Job Sequencer, you have two possibilities :
- using a routine who has the executable for sending a mail and in your routine you determine the condition Succes or Abend (with RoutineActivity)
- using the stage called NotificationActivity. In the JobActivity, check the answers and depending of your result, connect with the different NotificationActivity (one for Ok and one for Abord).

Peytot
nvkravi
Participant
Posts: 22
Joined: Mon Jun 09, 2003 12:01 am
Location: India

Post by nvkravi »

Hi,
Thaq Peytot. I will try this.
Post Reply