BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
claridad123
Fluorite | Level 6
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;

 

1 ACCEPTED SOLUTION

Accepted Solutions
claridad123
Fluorite | Level 6
Using %quote("M'[email protected]") and problem solved

View solution in original post

2 REPLIES 2
PaigeMiller
Diamond | Level 26

... 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.

 

 

--
Paige Miller
claridad123
Fluorite | Level 6
Using %quote("M'[email protected]") and problem solved

CFC_SAS_Communities_400x225.jpgCFC_SAS_Communities_400x225.jpg

Call for content now open!

It's your turn to help shape SAS Innovate 2027. Share your expertise and inspire the SAS community.

Submit your proposal →

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 2322 views
  • 0 likes
  • 2 in conversation