Problems with DSSendMail

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
goethami
Participant
Posts: 2
Joined: Wed Nov 19, 2003 10:43 am
Location: Belgium
Contact:

Problems with DSSendMail

Post by goethami »

Hi,

I do have problems with using "DSSendMail". This is the error that I get (see below). Do I have to change the txt-file (and wher do I have to put it) or is it something else ?
It also seems that a file, named sendmail_Demografietest.sh" is made but where can I find that file ? Sorry, I'm not a UNIX-professional !

Greetz from Belgium

error msg :
Demografietest..JobControl (DSSendMail): Error when executing command: "sendmail_Demografietest.sh"
*** Output from command was: ***
SH: sendmail_Demografietest.sh: not found

The following parameters in the call to DSSendMail were not mentioned in the file 'dssendmail_template.txt': server

Contents of command file:
#! /usr/bin/ksh
/usr/lib/sendmail -t <<////
From: michael.goethals@azf.vlaanderen.be
To: michael.goethals@azf.vlaanderen.be
Subject: TEST

TESTBODY

**************************************************
STATUS REPORT FOR JOB: Extract01
Generated: 2003-11-19 17:04:22
Job start time=2003-11-19 17:04:01
Job end time=2003-11-19 17:04:22
Job elapsed time=00:00:21
Job status=2 (Finished with warnings)
Stage: Trsf_Extract, 447775 rows input
Stage start time=2003-11-19 17:04:02, end time=2003-11-19 17:04:11, elapsed=00:00:09
Link: Extract, 447775 rows
Link: Input_Bronbestand, 447775 rows
////
sudeepmantri
Participant
Posts: 54
Joined: Wed Oct 25, 2006 11:07 pm
Location: Hyderabad

Post by sudeepmantri »

Most probably u have given the wrong syntax

Syntax

DSSendMail("From:abcd\nTo:efgh\nSubject:dddd\nAttach:dddd\nBody:dddd")

If you have multiple target email id separate them by a comma and then a space
eg user1,<space>user2

If u have multiple attachements separate them by comma
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Why in the heck are you running around, replying to ancient posts? :?

There's no need to add this bit of advice to every dang post you can find here...
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply