I am attempting to use the ATTACH statement in an email with multiple attachments and the following error is returned: data _null_; rd = strip(put(&run_date,mmddyyd10.)); call symputx('rd',rd); run; filename mymail email "xxx.sas@xxx.com"; data _null_; file mymail From = ("developers.sas@xxx.com") To = (myself@xxx.com) subject=(" Reports &rd"); attach=("\\xxx\Reports TOC &rd..xlsx" "\\xxx\REC.xlsx" ); run; The log returns error 22 (syntax error saying it was expecting another operator and it fails. I also need to send several pdf files in the same email.
... View more