Hi,
I'm trying to send an email with output and email content to valid userid see below :
when i'm using set statement , my contents in the emial is not getting displayed i from the "else" part , any idea where i'm doing worng !
filename mailbox email;
data _null_;
set my_log1;
if &sysuserid='uvm472' then do ;
file mailbox to="Deepti@yahoo.com" subject='deepti test';
put _all_;
end;
else do;
file mailbox to="Deepti@yahoo.com" subject='not deepti test';
put " pbdv report is successfull";
end;
run;
I see three things I would encourage you to look at.
put '!em_to! ' to_email;to set the recipient based on the value of a data step variable. For the details of the directives, see "PUT Statement Email Directives" at http://support.sas.com/documentation/cdl/en/lestmtsref/69738/HTML/default/viewer.htm#n0ig2krarrz6vtn....
Sorry for the short reply. I hope some of this helps.
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
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.