Sending HTML Results Automatically via E-Mail

Sometimes you need to e-mail your ODS HTML results to supervising managers or other interested parties. There are several ways to initiate e-mail using ODS. One method involves sending the output directly to the EMAIL engine, sending only the output with no explanatory message. On the other hand, it might be a requirement to send an explanatory note with the results output. Imagine that you had PROC UNIVARIATE syntax to create a quick report on blood pressure treatment group outliers (Extreme Observations):

ODS HTML FILE='c:\temp\ClinResults.html' STYLE=sasweb;
** PROC UNIVARIATE code and TITLE statements;
ODS HTML CLOSE;

Now that the file has been created with ODS, you next need to use the EMAIL ...

Get Output Delivery System: The Basics and Beyond now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.