Hi everyone,
When a try send email with this code:
filename outbox email
to='user@domain.com'
type='text/html'
subject='Temperature Conversions';
data temperatures;
do centigrade = -40 to 100 by 10;
fahrenheit = centigrade*9/5+32;
output;
end;
run;
ods html
body=outbox /* Mail it! */
rs=none;
title 'Title';
ods html text="Text1";
proc print;
id centigrade;
var fahrenheit;
run;
ods html text="Text2";
ods html close;
The result looks like with box around the text and the title, how correct this?
I try too with ods tex="Text1" and the result is the same.
Thank you for your support.
I'm going to assume you're on SAS 9.4. When I transitioned to 9.4 from 9.3 all of my cases like yours below got the box. With SAS 9.4 there is a new proc called "proc odstext". Use this instead.
Example:
ods html body=outbox;
ods text="test"; /* old code produces box */
proc odstext; /* no box produced with this */
p "test2";
p "you can have multiple lines in here";
run;
ods html close;
I'm going to assume you're on SAS 9.4. When I transitioned to 9.4 from 9.3 all of my cases like yours below got the box. With SAS 9.4 there is a new proc called "proc odstext". Use this instead.
Example:
ods html body=outbox;
ods text="test"; /* old code produces box */
proc odstext; /* no box produced with this */
p "test2";
p "you can have multiple lines in here";
run;
ods html close;
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.