I would like to send the email to multiple user, while one email address has a single quote in it: M'ma.E.Smith@gmail.com. Put double quote like M''am.E.Smith@gmail.com does not work.
Much appreciated the help!
%let email_out='Adam.X.Smith@gmail.com'
'Barbara.C.Smith@gmail.com'
'Cyndi.D.Smith@gmail.com'
'M''ma.E.Smith@gmail.com');
filename mymail email
subject="Automated Report: Test"
TYPE='text/html';
data _null_;
file mymail
from=('Test@gmail.com')
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.
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.