0
在数据步骤之外发送电子邮件时,是否可以在文件名语句后更新附件列表?在SAS中的文件名声明后添加附件
中的数据步骤中,您可以使用!EM_ATTACH!指令即时更改附件,但似乎不适用于数据步骤以外的工作。
filename outbox email
to = &emailToAddress
cc = &emailCCAddress
from = &emailFromAddress
replyto = &emailReplyToAddress
sender = &emailSender
type = 'text/html'
subject = &subject
;
ods listing close;
ods html
body=outbox
rs=none
style=Dove;
/* Do something here that figures out what needs to be attached */
Proc Print Data=somedataset;
Run;
/* Add attachment here */
ods html close;