BookmarkSubscribeRSS Feed
t_p_rao_uhc_com
Calcite | Level 5

Hi,

I am working on a Report which inloves Email the Report.

Here i am able send the only Text Email using the SAS Like

Filename Name Email

          Subject = "Test"

          From = "Email"

          To = "Email"

          CT = "Text/Html";

Data _Null_;

     File Name ;

     Put "Emailing is success full";

Run;

But When i am taking the Result in Output of Email Body i am only getting the Source code in it.

Filename Name Email

          Subject = "Test"

          From = "Email"

          To = "Email"

          CT = "Text/Html";

ODS Html rs=none;

Proc Print Data = Sashelp.calss;

run;

ods html close;

2 REPLIES 2
dataMart87
Quartz | Level 8

Try this.

filename outbox email "fromEmail"
to = ("toEmail")
type='text/html'
subject="Test";

ods MSOffice2K body=outbox rs=none style=sasweb;
proc print data=Sashelp.calss;

run;
ods MSOffice2K close;

t_p_rao_uhc_com
Calcite | Level 5

Thank you for your Help. But i am still getting the Source Code in It.

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

CLI in SAS Viya

Learn how to install the SAS Viya CLI and a few commands you may find useful in this video by SAS’ Darrell Barton.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 1254 views
  • 0 likes
  • 2 in conversation