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
SAS Super FREQ

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

SAS Innovate 2025: Call for Content

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!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 565 views
  • 0 likes
  • 2 in conversation