www.sas.com > SAS UK > In the Know Homepage Search | Contact Us     
SAS UK Newsletter Banner SAS - The power to know(tm)  

How to Send Data via Email which is Stored in a Variable within a SAS Dataset.

Here is a tip for quickly and efficiently sending information in SAS variables within a SAS dataset to company email addresses.

The variable New_Sales is the variable we want to extract from our dataset called Sales_dataset.

Virgin.net uses this code as part of a daily job to quickly send high level sales information to directors with no manual intervention!


filename Sales email ("me@me.com" "me2@me.com") subject="Sales Update";       
data _null_;                           
set Sales_dataset; 
file Sales;                              
put "Automated Message from the Reporting Team: The number of Sales yesterday was"  New_Sales; 
run;