Hello,
I am using SAS Enterprise Guide (7.1) to send an e-mail with an attached excel spreadsheet using the distribute wizard. I create a table, export it to an excel spreadsheet and then use the "E-mail recipient as step in project" option to send the excel spreadsheet via e-mail. The process works in that the file is sent with the correct contents however the name of the attached file is alphanumeric gibberish (e.g. 5660e56c39ef4a52b11764898ea8307d.xlsx). Also when the file is opened I get an error that the "File format and the extension don't match".
I've tried two different methods of exporting the data that result in the same issues:
ods excel file="/home/user/UserReport.xlsx";
proc print data=WORK.rel_req_det ;
run;
ods excel close;
and
filename rel "/home/user/Related Release Details Report";
proc export data=rel_req_det
outfile=rel
dbms=xlsx replace;
sheet="Data";
run;
Any thoughts on why this is happening and how to fix it? I could also have the spreadsheet sent to myself where I fix it before sending it on but that seems tedious.
Thanks!
What SAS version do you have?
The server is using SAS version 9.04.01M4P110916. I am using Enterprise Guide version 7.1
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
Check out this tutorial series to learn how to build your own steps in SAS Studio.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.