Help using Base SAS procedures

Adding proc print outputs to your email body

Reply
Contributor
Posts: 27

Adding proc print outputs to your email body

Hello SAS users.

I am working on the following code which generates an email that goes out daily.

data _null_;

call symput ('T_DATE',put(today(),DDMMYY10.));

run;

%put &T_date;

ods html(id=rpout) body="report.html";

filename file email

to=("xx@yy.com")

from=("xx@yy.com")

subject= "Daily Results last updated on &T_DATE."

CT='text/html'

;

data _null_;

file ippfile2;

put "<html><body><font face='GE Inspira' size=3.0016'>";

put "Hello.";

put "<br></br><br></br>";

put "Please see below for the daily report summary tables.";

put "<br></br><br></br>";

put "The corresponding daily report is now available in:";

put "<br></br><br></br>";

put "<a href='\\fs2cgcfge\xxx'>\\fs2cgcfge\xxx</a>";

put "</font></html></body>";

run;

I am trying to get SAS to print the output of a proc print below the body of the email?

How would you acheive this? I keep getting errors or two separate emails (one for the email body and the table).

Many thanks

Ask a Question
Discussion stats
  • 0 replies
  • 516 views
  • 0 likes
  • 1 in conversation