The SAS Output Delivery System and reporting techniques

ODS HTML TEXT= font change for all text

Reply
Occasional Contributor
Posts: 13

ODS HTML TEXT= font change for all text

Hi SASers!

I'm not sure if this has been asked or not, I've read a few threads but haven't read what I'm looking for. What I'm looking to do is create an email thats sent out daily with information included within the email, not a table just information. For example I would like to put:

Mail is defined at the top of code as an email with a list of people to send the email and attachment with records. this is just an example but thats what I want. But as it stands I can't figure out how to have both the font options and the information being called in at the same time, only one or the other. I would really appreciate the help on this one.

 

Where  InRec COMMA10 is a number of industry records and Negative COMMA10 is the unmatched records. Both these are called from a previous datastep

 

DATA _NULL_;
SET TEMP.Industry; 
IF _N_ EQ 1 THEN DO;

ODS HTML BODY= mail;
file mail;
ods escapechar='^';

ODS HTML TEXT='<div>^S={fontsize=11pt font_weight=bold font_face="Courier New"
To Team,
<BR/><BR/>Industry records have arrived.
<BR/><BR/>A Total of :' InRec COMMA10. ' <BR/>records have been reconciled. There are' Negative COMMA8. '
unmatched records that should be investigated. ^S={}</div>'

ODS HTML CLOSE;
END;
ODS LISTING;
RUN;

 

Any Help would be very appreciated

Occasional Contributor
Posts: 13

Re: ODS HTML TEXT= font change for all text

Posted in reply to XMonsterX

Sorry I'm not sure what happened but the end of the text line that has a ^S={ was supposed to be the ending and be ^S={}</div>'

Super User
Posts: 19,770

Re: ODS HTML TEXT= font change for all text

Posted in reply to XMonsterX

Try using the code editor to insert your code.  The {i} icon or notepad icon at the top of the editor allow you to insert code. The forum will still garble some of it, so check it over though.

Super User
Posts: 11,343

Re: ODS HTML TEXT= font change for all text

Posted in reply to XMonsterX
Internet Explore is having an issue with lines with brace characters rendering correctly from this forum. What you pasted or typed is there but IE doesn't display correctly.
Super User
Posts: 10,020

Re: ODS HTML TEXT= font change for all text

Posted in reply to XMonsterX
You can change the font of all the text by HTML raw code, no need SAS Style ~S={}. Can you change it by HTML code ?
Ask a Question
Discussion stats
  • 4 replies
  • 823 views
  • 0 likes
  • 4 in conversation