How to send a mail with file rejected with data

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
ysrini9
Participant
Posts: 108
Joined: Tue Jul 12, 2005 2:51 am

How to send a mail with file rejected with data

Post by ysrini9 »

Hi All,

I have a requirement like below:

Source --------Transformer------------>Staging
||

Rejectfile

If data is got aborted and loadted in to reject immedi..I need to send a mail to respective people ? attachment along with Rejected Rows ?

is there any possiblity to achieve in DataStage itself ?

Advance Thanks and Regards
srini
WoMaWil
Participant
Posts: 482
Joined: Thu Mar 13, 2003 7:17 am
Location: Amsterdam

Post by WoMaWil »

yes
Wolfgang Hürter
Amsterdam
throbinson
Charter Member
Charter Member
Posts: 299
Joined: Wed Nov 13, 2002 5:38 pm
Location: USA

Post by throbinson »

Call the job from a Sequence. Once the job completes, check the reject file in a Command Activity stage, if zero size you're done, if not then use a notification activity stage to send the e-mail with the Reject file attached.
Post Reply