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.

Ready to join fellow brilliant minds for the SAS Hackathon?

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!
SAS Enterprise Guide vs. SAS Studio

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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