BookmarkSubscribeRSS Feed
Ronein
Onyx | Level 15

Hello

I want to send an email from SAS with :

1- body text in email

2- Report in body (Not attach file )

This code doesn't create both text and report in body.

what is the way to do it please??

 

 

FILENAME temp EMAIL 
from="JOE@gmail.com"
TO=("JOE@gmail.com")
SUBJECT="CAR REPORT"
CONTENT_TYPE="text/html" ;
ODS LISTING CLOSE;
ODS html body=temp;


ods html body=temp rs=none style=HTMLBlue ;
data _null_;
file mail;
put 'HELLO';
put "HERE IS CAR REPORT";
put ' ';

put 'Regards,Joe';
run;

title;
proc print data=sashelp.cars(where=(upcase(make)='AUDI')) noobs;Run;

2 REPLIES 2
How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 377 views
  • 0 likes
  • 3 in conversation