The SAS Output Delivery System and reporting techniques

Unable to send email through SAS UNIX

Reply
Occasional Contributor
Posts: 19

Unable to send email through SAS UNIX

Hi,

I have an issue while trying to email using the SAS program as given below:

filename sendmail email
to=("getpramod.r@gmial.com")
subject="File"
;
data _null_;
file sendmail;
put / "Hi";
run;

I get an error saying :

NOTE: The file SENDMAIL is:
E-Mail Access Device

ERROR: Email: The connection was refused.
NOTE: The SAS System stopped processing this step because of errors.

However, I'm able to send the email using the mailx command in the Unix command line.

Is there something that i neeed to enable in SAS.

Note: My SAS is running on AIX

Thanks in Advance!
Pramod
SAS Super FREQ
Posts: 8,743

Re: Unable to send email through SAS UNIX

Hi:
There are several configuration options that must be set for the FILENAME EMAIL engine to work (such as EMAILSYS, EMAILHOST, EMAILPORT). The options can be found in the SAS Companion for the Unix operating system:
http://support.sas.com/documentation/cdl/en/hostunx/61879/PDF/default/hostunx.pdf

These Tech Support notes may be useful:
http://support.sas.com/kb/19/767.html
http://support.sas.com/kb/18/363.html

You may need to consult with your email administrators about the values for some of the settings or to have the settings added to the configuration file used by SAS.

cynthia
Ask a Question
Discussion stats
  • 1 reply
  • 3487 views
  • 1 like
  • 2 in conversation