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
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!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.