Hi Experts, How can i tell SAS to notify me via email once macro finished processing? Also, can i mention in the email processing time - time taken by macro with the attachment CSV file generated by macro? %macro replace (input= prac.file1,stats=median,vars=Q1-Q5,output=replaced); * Generate analysis results ; proc means data=&input noprint; var &vars; output out=dummy (drop=_type_ _freq_) &stats= / autoname; run; * Convert to vertical ; proc transpose data=dummy out=dummy; run; * Replace missing with analysis results ; data &output; set &input; array vars &vars ; do i =1 to dim(vars); set dummy(keep=col1) point= i ; vars(i)=coalesce(vars(i),col1); drop col1 ; end; run; Proc export outfile = &output data ='\user\ujjwal' dbms =csv; run; %mend; Options mprint nosymbolgen; %replace (input= prac.file1,stats= median,vars=Q1-Q5,output=replaced);
... View more