How to rectify this error

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
sankar18
Participant
Posts: 34
Joined: Mon Dec 16, 2002 1:18 am

How to rectify this error

Post by sankar18 »

Hi All,

I am trying to send mail from transform, The function DSSendmailTester function is taken from routine and placed it in the derivation of the new column. while executing of the job, I am getting this error
____________________________________________________________________
The following tokens in the 'dssendmail_template.txt' file have not been set in the call to DSSendMail: %to%,%from%,%server%
____________________________________________________________________

The OS of the system is a Winnt.

How to Send a mail using the function DSSendmail
Explain the steps in detail.

Thanks in advance
T Sankar




Edited by - sankar18 on 12/16/2002 07:06:02

Edited by - sankar18 on 12/16/2002 23:24:07
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You need to specify five arguments for DSSendMailTester; have you done so? Explore the Routine in detail in Manager; there are a few hints there. To call the DSSendMail() function these five arguments need to be loaded into a dynamic array.
Do you really want to send mail for every row processed? Would it not be better to create a Sequence with a Notification activity?

Edited by - ray.wurlod on 12/17/2002 17:18:15
sankar18
Participant
Posts: 34
Joined: Mon Dec 16, 2002 1:18 am

Post by sankar18 »

Thanks Ray.
DSSendmail is working great.
Post Reply