BookmarkSubscribeRSS Feed
Banu
Obsidian | Level 7

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.

1 REPLY 1
Cynthia_sas
Diamond | Level 26

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

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 1 reply
  • 835 views
  • 0 likes
  • 2 in conversation