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;
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
Check out this tutorial series to learn how to build your own steps in SAS Studio.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.