BookmarkSubscribeRSS Feed
Srigyan
Quartz | Level 8

I am trying to send a mail to myself with few of the details.

I am using following code

proc template;
   define style styles.test;
      parent=styles.htmlblue;
      class systitleandfootercontainer /
            htmlstyle="border:none";
   end;
run;

filename myemail email
to = ( "xxx@xxx.com" )
subject="Daily File Summary"
type="text/html";
ODS html body=myemail 
/*style=noline;*/
/*style = Listing;*/
style=pearl;

ods html text = "Hi All,";
ods html text="";
ods html text = "Please find the summary report for file genrerated today and transfer to S3 location";
ods html text="";
ods html text="";
ods html text="";


PROC REPORT DATA= &export_file._summary
style (report) = {background = white
font_face = "calibri" font_size = 10.5pt just=left }
style (column) = {background = white 
CELLHEIGHT = 2.5%
font_face = "ubuntu" 
font_size = 10pt 
just=left}
style (header) = {foreground = cx5e2750 
font_face="ubuntu"
font_size = 10pt
just=left
background = white} 

;

run;
ods html text = "Have a Great Day.";
ods _all_ close;

The mail format below having border line in text but does not have borderline in report.

Capture.JPG

I want my mail body text without borderline & report with Border like it is coming in actual output in sas.Capture1.PNG

Whats wrong with my code?

 

1 REPLY 1
ChrisNZ
Tourmaline | Level 20

1. You must use 

  style usertext

in proc template. See here

 

2. Try using styles

proc report data=TABLE   style(report)=[borderwidth=2pt] ;

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
  • 345 views
  • 0 likes
  • 2 in conversation