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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.
Ready to level-up your skills? Choose your own adventure.