Thanks Jaap. Now I change the code and executed it .It basically giving no ERROR in the log and log is reflecting that mail is sent but i didnot receive the mail. Idon't know what is the problem.Please guide Here is the code:- %MACRO email(SEmailid); FILENAME mymail EMAIL "NULL" TO="&SEmailid" ; data _null_; FILE mymail; put 'Hello!'; run; %MEND; data MailDset; input Email_ID $25.; datalines; sandeep52.s@gmail.com ; run; OPTIONS MLOGIC MPRINT SYMBOLGEN; data _null_; set MailDset; call symput("V_EMAIL_ID",trim(EMAIL_ID)); run; DATA _NULL_ ; CALL SYMPUT("SEmailid","&V_EMAIL_ID"); RUN; %email(&SEmailid);
... View more