BookmarkSubscribeRSS Feed
kdjamboe
Calcite | Level 5

Hello,

 

We are running a SAS grid on RHEL 6.8.  We tried to send email with excel file attachment in code and it was removed when it got to recipient.  We are able to send CSV, pdf and .zip attachments and they go through.  Any idea on why exccel file is removed?  Thanks

JK

3 REPLIES 3
Kurt_Bremser
Super User

Most likely a mail router removed the attachment for security reasons. xls files are major conduits for malware. Stay with text-based formats when transmitting data.

If you want to supply formatted reports in spreadsheets, create XML (and use the proper .xml filename extension!) files with ODS TAGSETS.EXCELXP.

RW9
Diamond | Level 26 RW9
Diamond | Level 26

I would also add to @Kurt_Bremser, that email is not a good method of data transfer in any circumstance.  You will hit all kinds of limitations, file size, file type etc.  I would always recommend either a web portal with access for only those who need it, or an ftp server for actual data transfers.  

ballardw
Super User

An additional $0.02

If the file was intended as a report then a different file format, even though some management seems to insist on Excel, such as PDF may be more appropriate. I have found that users occasionally "accidentally" enter stuff into Excel changing the results I provide especially when they use the provided results to "build charts".

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 3 replies
  • 1124 views
  • 1 like
  • 4 in conversation