I know how to attach PDF or XLS file to email as an attachment using UNIX commands in SAS.
I would like to know how to send these reports to email body, so that users can access quickly, instead of extra step to open.
Hi:
Many mail systems only let you send plain text or HTML in the email body. So for a file like PDF or XLS or XLSX, you do not have any choice other than to send the PDF, or Excel file, as an attachment. There have been many previous postings about how to do this. As a starter, look on page 7 of this paper: http://support.sas.com/resources/papers/proceedings11/300-2011.pdf -- the code snippet shows an RTF file being created with ODS prior to the email step, but you would just change the RTF step or either ODS PDF or ODS EXCEL.
Cynthia
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.