BookmarkSubscribeRSS Feed
val_nikolajevs
Obsidian | Level 7

Hello,

Would some one please help to format generated email.

Using ods html text produces boxes around each line in outlook; using proc odstext generates a big  gap with a line across screen between text and inserted report. All what I would like to have:

*******

Hello,-text

Report:-text

finalsumbita: - table

Thank you-text

*************

with out text in boxes, spacing and lines between text and report. Is there a way just add a table to proc odstext?

This is the code :


filename outbox email
from='xxxx'
to=( 'yyyy' )
type='text/html'
subject="Do Not Reply";

ods html body=outbox rs=none style=HTMLBlue ;

ods text = "Hello, "; /*option with text in box*/

ods text = "Report "; /*option with text in box*/
proc odstext ; /*option with line and extra spacing*/
p 'Hello,';
run;
proc report data=FINALSUBMITa nowd HEADLINE HEADSKIP
style (report) = { width=50% frame=void cellspacing=0 padding=0pt background = white borderwidth = 1
font_face = "Verdana" font_size = 10pt just=left}
style (column) = {background = white CELLHEIGHT = 2.5%
font_face = "Verdana" font_size = 10pt just=Center}
style (header) = {foreground = cx5e2750 font_face="Verdana"
font_size = 10pt just=center
background = white} ;

RUN ;


proc odstext;
p 'Thank You,';

title;
run;
ods html close;

 

Thank you

1 REPLY 1
JOL
SAS Employee JOL
SAS Employee

Try reposting under Programming --> ODS and Base Reporting

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 1 reply
  • 1401 views
  • 0 likes
  • 2 in conversation