04-04-2017 03:07 PM
Hi, I have a piece of code that used to send email to my boss regading some stats, now it stopped working due to 'Permission is denied'. I checked software status it will not expire till end of 2017. So could someone help me on this?
Grace Period: 45 days (ending 13FEB2018).
Warning Period: 47 days (ending 01APR2018).
System birthday: 28MAR2017.
Operating System: WX64_WKS.
Product expiration dates:
---Base SAS Software
---SAS Enterprise Guide
---SAS/ACCESS Interface to PC Files
---SAS/ACCESS Interface to ODBC
---SAS Workspace Server for Local Access
---High Performance Suite
the piece of SAS code:
/* E-mail tables in HTML format */
FILENAME output EMAIL
SUBJECT= " Completed for %sysfunc(date(),yymmdd10.)"
TO= (&emailsaserrors.) CT= "text/html" /* Required for HTML output */ ;
ODS HTML BODY=output STYLE=sasweb;
ods html text="<p align=center><b><h2>Process finished. Results are as below</h2></b></p><br><hr>";
proc print data=Overall noobs;
ODS HTML CLOSE;
05-18-2017 04:18 PM
I couldn't reproduce the error you were getting.
As long as I use a valid FROM and TO email address, your code worked on my system (after creating a dataset named "overall").
Maybe you can rerun and show the log section with the error (delete any email addresses)?
02-21-2018 09:47 PM
Hi, I was receiving the exact same message. In my case, the problem was that I was using the wrong emailsys (smtp). I changed it to mapi and it solved the problem. Make sure you are using the correct email system. Hope this helps.