Hi, I have a daily email that goes out, but i want to send the email only when data exists. Currently it sends an email no matter if the data exists or not. Currently i make a dataset with the desired data and then i run this code to send an email: filename outbox email to=("abc@gmail.com") type='text/html' subject="Today's Details" from='abc@gmail.com'; ods html body=outbox; proc print data= WORK.EMAIL; run; ods html close; is there a way i can do something like: if count is not null then ( filename outbox email to=("abc@gmail.com") type='text/html' subject="Today's Details" from='abc@gmail.com'; ods html body=outbox; proc print data= WORK.EMAIL; run; ods html close; ) else exit; Thanks. Ashu
... View more