SAS:尽管语法明显正确,但电子邮件代码仍显示错误
这是我写的代码SAS:尽管语法明显正确,但电子邮件代码仍显示错误,sas,Sas,这是我写的代码 proc export data=work.XYZ outfile="XYZ.xlsx" dbms=xlsx replace; run; filename outbox email from='abc@abc.com' to='abc@abc.com' type='text/html' subject='Test Mail' attach=("XYZ.xlsx" content_type="exce
proc export data=work.XYZ
outfile="XYZ.xlsx"
dbms=xlsx replace;
run;
filename outbox email
from='abc@abc.com'
to='abc@abc.com'
type='text/html'
subject='Test Mail'
attach=("XYZ.xlsx" content_type="excel");
ods html body=outbox rs=none style=Htmlblue;
proc odstext;
p 'Hello,';
p ' Please find the attachment';
p 'Thank You';
title;
run;
ods html close;
我在这一行遇到了错误
attach=("XYZ.xlsx" content_type="excel");
_
24
错误24-2:附加选项的值无效
请让我知道我遗漏了什么,或者这是一个有解决方法的bug
谢谢如果未指定内容类型,SAS将根据文件名确定正确的内容类型。看这里: