BookmarkSubscribeRSS Feed
SasStatistics
Pyrite | Level 9

In my organization, we send many mails through through SAS automatically. So it makes sense to write a macro/function for this. 

Before starting to write my own it would be awesome if you could share what you/others have done in this front that you know of and that could work as a inspiration or even template. In best case, someone might even have written a "finished macro" that I can reuse. 

All tips appreciated. 

2 REPLIES 2
Reeza
Super User

https://www.lexjansen.com/search/searchresults.php?q=sas%20mail

 

There's a lot out there.

 


@SasStatistics wrote:

In my organization, we send many mails through through SAS automatically. So it makes sense to write a macro/function for this. 

Before starting to write my own it would be awesome if you could share what you/others have done in this front that you know of and that could work as a inspiration or even template. In best case, someone might even have written a "finished macro" that I can reuse. 

All tips appreciated. 


 

SASKiwi
PROC Star

You may want to consider using the mailing capabilities of any job schedulers you are using with SAS. If the purpose of the email is merely to notify the completion of a SAS job or that an error has occurred, then mailing from a scheduler doesn't require any coding at all.

 

Obviously if you are mailing for other purposes then you will need to mail from SAS itself. 

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
  • 2 replies
  • 770 views
  • 2 likes
  • 3 in conversation