BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
D4RkM4N
Fluorite | Level 6

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.

 

email_text.PNG

 

Thank you for your support.

1 ACCEPTED SOLUTION

Accepted Solutions
data_snawb
Fluorite | Level 6

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.

 

Documentation Link

 

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;

procodstextexample.png

View solution in original post

2 REPLIES 2
data_snawb
Fluorite | Level 6

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.

 

Documentation Link

 

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;

procodstextexample.png

D4RkM4N
Fluorite | Level 6
Thank you for your support.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

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!

Register Now

Creating Custom Steps in SAS Studio

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 2 replies
  • 4341 views
  • 2 likes
  • 2 in conversation