ods html body='C:\Users\Anand\Desktop\SAS PROJECT\class.html' ;
proc print data=sashelp.class;
title 'ODS html Report';
run;
ods html close;
** Step 2: Use Email Engine to send html file as an attachment;
filename doemail email to=('[email protected]' )
from='[email protected]'
cc=('[email protected]')
subject='Look at this ODS html report'
attach='C:\Users\Anand\Desktop\SAS PROJECT\class.html';
data _null_;
file doemail;
put 'This is a test email with an html attachment.';
run;
288 ods html body='C:\Users\Anand\Desktop\SAS PROJECT\class.html' ;
NOTE: Writing HTML Body file: C:\Users\Anand\Desktop\SAS PROJECT\class.html
289 proc print data=sashelp.class;
290 title 'ODS RTF Report';
291 run;
NOTE: There were 19 observations read from the data set SASHELP.CLASS.
NOTE: PROCEDURE PRINT used (Total process time):
real time 0.23 seconds
cpu time 0.03 seconds
292 ods html close;
293
294 ** Step 2: Use Email Engine to send RTF file as an attachment;
295 filename doemail email to=('[email protected]' )
296 from='[email protected]'
297 cc=('[email protected]')
298 subject='Look at this ODS html report'
299 attach='C:\Users\Anand\Desktop\SAS PROJECT\class.html';
300
301 data _null_;
302 file doemail;
303 put 'This is a test email with an html attachment.';
304 run;
NOTE: The file DOEMAIL is:
E-Mail Access Device
ERROR: Undetermined I/O failure.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: DATA statement used (Total process time):
real time 3.31 seconds
cpu time 0.29 seconds