How to mail SAS table in excel form? How to mail errors?
@tarikbirinci1 wrote:
How to mail SAS table in excel form?
By attaching the excel file to a mail. I am sure that you will find papers with code.
@tarikbirinci1 wrote:
How to mail errors?
What you mean exactly? Easiest way: use proc printto to save the log in am accessible directory, then just send the path to log.
To create an Excel file, either use PROC EXPORT with DBMS=XLSX, or PROC PRINT with ODS EXCEL, or LIBNAME XLSX.
To send mail from SAS code, use FILENAME EMAIL.
You will find examples in the linked documentation.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.