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

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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