Notification_Activity_For_Multiple_Recipients

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
jimgowtham
Participant
Posts: 34
Joined: Thu Feb 16, 2006 8:34 am
Location: mumbai

Notification_Activity_For_Multiple_Recipients

Post by jimgowtham »

Hi,

I am running a job like...


(JOB_Activity)----------->(Notification_Activity)

On success of job_activity, I have sent email to multiple user.

Regards,
Jim
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

First response would be - ok, go ahead! Or maybe Ok_Go_Ahead! :wink:

But I guess you are asking, in spite of the lack of an actual question, how one would do that, yes? Two simple answers:

1) Use an email group. To me, that is the preferred answer as changes to recipients is done outside of the job, maintained like any other email group is maintained.

2) List multiple email addresses in the stage. Use whatever separator works for your email system - that might be a space, a semi-colon, maybe even a comma for all I know. Test until it works.

In either case, I'd suggest you parameterize it so that changes don't require job changes to implement.
-craig

"You can never have too many knives" -- Logan Nine Fingers
jimgowtham
Participant
Posts: 34
Joined: Thu Feb 16, 2006 8:34 am
Location: mumbai

Post by jimgowtham »

Thanks for your reply...

:( (Working 24/7) :( Oh...thing is I have to Sent Email to multiple user's.

I tried with two options Both are working fine.

1) Using UNIX Script like
#! /bin/sh
/usr/lib/sendmail -t <<////
From: jim@me.com
To: jim@me.com
To: jim@me.com
Subject: Hi Brothere
hai Buddy
////
2) Using DS Routine DSSendMail

However I have to use it in job_activity stage. i.e Success of multiple DS_JOBS.

chulett :
======
2) List multiple email addresses in the stage. Use whatever separator works for your email system - that might be a space, a semi-colon, maybe even a comma for all I know. Test until it works.

In either case, I'd suggest you parameterize it so that changes don't require job changes to implement.

How to pass multiple EMAIL ID's ?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

As noted, just put them in the stage. :?

Either do that directly, separated by a space or a semi-colon or a comma or whatever works for you - or use a Job Parameter and do the same for the parameter's default value.
-craig

"You can never have too many knives" -- Logan Nine Fingers
jimgowtham
Participant
Posts: 34
Joined: Thu Feb 16, 2006 8:34 am
Location: mumbai

Post by jimgowtham »

Thank you very much CHULETT
Post Reply