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
Diamond | Level 26
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

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 6132 views
  • 1 like
  • 2 in conversation