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;
Use ODS TEXT to insert free-form text in an ODS stream.
Try example 3 in the SAS documentation. Does this work? If not post your complete SAS log.
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.
Ready to level-up your skills? Choose your own adventure.