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;