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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.