I would like to send the email to multiple user, while one email address has a single quote in it: M'[email protected]. Put double quote like M''[email protected] does not work.
Much appreciated the help!
%let email_out='[email protected]'
'[email protected]'
'[email protected]'
'M''[email protected]');
filename mymail email
subject="Automated Report: Test"
TYPE='text/html';
data _null_;
file mymail
from=('[email protected]')
to=( &email_out);
put 'Test Program';
run;
... does not work
You have a parenthesis at the end of the value of macro variable &email_out, which won't work. What happens after you remove the parenthesis?
When code doesn't work, show us the LOG, all of the LOG for this portion of code, every single line in the LOG for this portion of code. Do not chop parts of out the LOG for this portion of code.
Nearly 200 sessions are now available on demand in the Innovate Hub.
Watch Now →Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.