09-12-2017 10:49 AM
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 ;
ods excel close;
filename rel "/home/user/Related Release Details Report";
proc export data=rel_req_det
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.