BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I would like to send a one-line email message out of SAS using the X command. Is there a way to do that?

We are an MS Windows server installation with 9.0 and use Outlook Exchange Server?

Basically is there a DOS-like way to send a one line message using Outlook?
2 REPLIES 2
deleted_user
Not applicable
I don't know the DOS-like outlook command but to send emails in SAS I use this :

filename outbox email "toto@toto.com" ;

data _null_;
file outbox
subject="Subject of your email";
put "Your text";
run;

You can find anothers examples (more detailed) in the "Samples" Section of this site with the keyword "email".
StanleyJones
Calcite | Level 5

Have you tried to sending a mail using a DATA Step, or using conditional logic in a DATA Step

? And for the DOS-command, I am not sure if there is any viability or not. You can try the reference solution provided above.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

Discussion stats
  • 2 replies
  • 923 views
  • 2 likes
  • 2 in conversation