DATA Step, Macro, Functions and more

Reg:Email

Reply
Frequent Contributor
Posts: 140

Reg:Email

Hi i am trying to send email by using the  macrovariable

using like this

%let a=%str(ak.gmail.com;lkp.gmai.com;rk@gmail.com);

%put &a;

I am getting error how can i resolve this 3 emial ids

Super User
Super User
Posts: 7,076

Reg:Email

Posted in reply to sas_Forum

That code runs fine.  But the first two values are not email addresses.

How are you actually trying to use it?  What error message are you getting.

Super User
Posts: 10,044

Reg:Email

Posted in reply to sas_Forum

You should use   %unquote(&a)   to unmask special character.

Ksharp

Regular Contributor
Regular Contributor
Posts: 166

Reg:Email

Posted in reply to sas_Forum

Hi,

If you are adding the %put to your filename statement.. Would the Semi colon not end the filename statement?

I think if you are trying to send the mail to all three ids then you should have a space instead of semicolon.

%let a=%str("ak.gmail.com" "lkp.gmai.com" "rk@gmail.com");

%put &a;

Ask a Question
Discussion stats
  • 3 replies
  • 138 views
  • 0 likes
  • 4 in conversation