BookmarkSubscribeRSS Feed
Pramod_R
Calcite | Level 5
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
1 REPLY 1
Cynthia_sas
SAS Super FREQ
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

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 5851 views
  • 1 like
  • 2 in conversation