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".

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 3 replies
  • 927 views
  • 1 like
  • 4 in conversation