07-26-2017 11:31 AM
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;
if &sysuserid='uvm472' then do ;
file mailbox to="Deepti@yahoo.com" subject='deepti test';
file mailbox to="Deepti@yahoo.com" subject='not deepti test';
put " pbdv report is successfull";
07-26-2017 02:18 PM
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.