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
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.
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.
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 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.