自升级到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.
任何帮助都很有帮助。
谢谢
答案 0 :(得分:0)
您的RSUBMIT正在服务器上提交,因此在RSUBMIT内部,路径是服务器的本地路径。除非它能够看到您的桌面(即通过映射的驱动器),否则它将无法访问本地计算机上的文件。您必须先将它们上传到服务器。