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;
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: