將 excel 檔案附加到 SAS 電子郵件

Filename myEmail EMAIL
    Subject = "My Email Subject"
    From    = "myFromAddress@email.com"
    To      = 'toAddress@email.com'
    CC      = 'ccAddress@email.com'
    Type    = 'Text/Plain'
    ATTACH = ("my/excel/file/path/file.extension" content_type="application/vnd.ms-excel" LRECL= 32767);

Data _null_; File myEmail;
    PUT "Email contentent";
    PUT "&recordsCount loaded to your favorite table today!";
RUN;