【发布时间】:2014-03-21 08:05:39
【问题描述】:
自从升级到 SAS 9.3 后,我只能在 rsubmit 中发送电子邮件,这不是问题……但是我无法附加本地文件,请有人帮忙吗?
RSUBMIT;
FILENAME outmail EMAIL
SUBJECT="Daily report attached"
TO= ("xxxxx@xx.com")
ATTACH= "C:\Users\one\Desktop\Cars.xls";
DATA _NULL_;
FILE outmail;
PUT "Hello All,";
PUT ;
PUT "Please find attached the Cars report.";
PUT ;
PUT "Regards";
PUT ;
RUN;
我在日志中收到以下错误消息:
ERROR: Error opening attachment file C:\Users\one\Desktop\Cars.xls.
ERROR: Physical file does not exist, /home/one/C:\Users\one\Desktop\Cars.xls.
非常感谢任何帮助。
谢谢
【问题讨论】:
-
也许
ATTACH中的文件路径应该是"Desktop/Cars.xls"? -
据我所知,SAS 9.3 和电子邮件没有什么特别之处;您的桌面是否发生了某些变化(操作系统、权限等),可能会阻止邮件在本地发送?
标签: sas