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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

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