<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SAS E-MAIL  FORMAT PROBLEM in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/SAS-E-MAIL-FORMAT-PROBLEM/m-p/47603#M12787</link>
    <description>Hi:&lt;BR /&gt;
  When you use &amp;lt; or &amp;gt; symbols in your code, it confuses the forum posting software. So the "fix" is to use &amp;amp;lt; for the &amp;lt; symbol and &amp;amp;gt; for the &amp;gt; symbol or to post your code with LT, LE, GT, GE logical operators.&lt;BR /&gt;
&lt;BR /&gt;
  This previous forum posting is very helpful in explaining other things that you can do to help your postings look better and be more readable:&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=27609毙" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=27609毙&lt;/A&gt; &lt;BR /&gt;
 &lt;BR /&gt;
  Meanwhile, I believe this is the code you wanted to post:&lt;BR /&gt;
[pre]&lt;BR /&gt;
DATA libcan.can; if id LE 4 then  FILE outmail1;&lt;BR /&gt;
PUT "CONDITION 1 !!!";&lt;BR /&gt;
else&lt;BR /&gt;
FILE outmail2;&lt;BR /&gt;
PUT "CONDITION 2 !!!";&lt;BR /&gt;
RUN;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                                            &lt;BR /&gt;
Note that I changed &amp;lt;= to LE in the above code. I see that you do not have a SET statement in your program, so I find myself wondering how the test for ID will work out???? Generally, when you write output with a PUT statement, you are writing to FILE PRINT. You do not have as much control over the font characteristics of the output as you would in a PROC PRINT or a PROC REPORT. Although you could define color coding for a data step program, by using a custom TABLE template or writing the text with their own HTML tags or possibly using STYLE= overrides, if your mail system is set to PLAIN TEXT, there is really nothing you can do to override what the mail system format is - -from inside SAS. You have to play by the rules of the mail system you are using. &lt;BR /&gt;
 &lt;BR /&gt;
 IF your mail system allows HTML content and IF you put HTML tags into your PUT statements you might be able to alter the color as you want. But those are 2 big IFs...and even if you SEND HTML e-mail content -- the receiving e-mail system has to allow HTML email content, too. You might want to check with the documentation or Tech Support -- I believe you have to change the content-type for the email engine if you want to send HTML. And, of course, you have to check with your mail administrators to see what they will allow.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
    <pubDate>Mon, 11 Apr 2011 15:51:17 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2011-04-11T15:51:17Z</dc:date>
    <item>
      <title>SAS E-MAIL  FORMAT PROBLEM</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-E-MAIL-FORMAT-PROBLEM/m-p/47601#M12785</link>
      <description>Hi Guys,&lt;BR /&gt;
&lt;BR /&gt;
Does anyone know how to change the format of the text of e-mail utility of SAS?&lt;BR /&gt;
&lt;BR /&gt;
I mean i've two different types of email formats, if the procedure i submit is done then i make a condition which sends me the "format1", otherwise sas send the other mail "format2".&lt;BR /&gt;
&lt;BR /&gt;
But i want to change the font size &amp;amp; font colour of the &lt;B&gt;text which is written in the content of e-mail&lt;/B&gt;. I could not find any source in this case. It would be great if you help me.&lt;BR /&gt;
&lt;BR /&gt;
For example i want: "CONDITION 1 !!!" as written BOLD and RED and for "CONDITION 2 !!!" written as BOLD AND BLUE.&lt;BR /&gt;
&lt;BR /&gt;
My code is:&lt;BR /&gt;
&lt;BR /&gt;
DATA libcan.can; if id &amp;lt;= 4 then  FILE outmail1;&lt;BR /&gt;
PUT "CONDITION 1 !!!";&lt;BR /&gt;
else&lt;BR /&gt;
FILE outmail2;&lt;BR /&gt;
PUT "CONDITION 2 !!!";&lt;BR /&gt;
RUN;</description>
      <pubDate>Mon, 11 Apr 2011 09:15:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-E-MAIL-FORMAT-PROBLEM/m-p/47601#M12785</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2011-04-11T09:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: SAS E-MAIL  FORMAT PROBLEM</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-E-MAIL-FORMAT-PROBLEM/m-p/47602#M12786</link>
      <description>DATA libcan.can; if id &amp;lt;= 4 then  FILE outmail1;&lt;BR /&gt;
PUT "CONDITION 1 !!!";&lt;BR /&gt;
else&lt;BR /&gt;
FILE outmail2;&lt;BR /&gt;
PUT "CONDITION 2 !!!";&lt;BR /&gt;
RUN;

Message was edited by: cakcan</description>
      <pubDate>Mon, 11 Apr 2011 09:15:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-E-MAIL-FORMAT-PROBLEM/m-p/47602#M12786</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2011-04-11T09:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: SAS E-MAIL  FORMAT PROBLEM</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-E-MAIL-FORMAT-PROBLEM/m-p/47603#M12787</link>
      <description>Hi:&lt;BR /&gt;
  When you use &amp;lt; or &amp;gt; symbols in your code, it confuses the forum posting software. So the "fix" is to use &amp;amp;lt; for the &amp;lt; symbol and &amp;amp;gt; for the &amp;gt; symbol or to post your code with LT, LE, GT, GE logical operators.&lt;BR /&gt;
&lt;BR /&gt;
  This previous forum posting is very helpful in explaining other things that you can do to help your postings look better and be more readable:&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=27609毙" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=27609毙&lt;/A&gt; &lt;BR /&gt;
 &lt;BR /&gt;
  Meanwhile, I believe this is the code you wanted to post:&lt;BR /&gt;
[pre]&lt;BR /&gt;
DATA libcan.can; if id LE 4 then  FILE outmail1;&lt;BR /&gt;
PUT "CONDITION 1 !!!";&lt;BR /&gt;
else&lt;BR /&gt;
FILE outmail2;&lt;BR /&gt;
PUT "CONDITION 2 !!!";&lt;BR /&gt;
RUN;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                                            &lt;BR /&gt;
Note that I changed &amp;lt;= to LE in the above code. I see that you do not have a SET statement in your program, so I find myself wondering how the test for ID will work out???? Generally, when you write output with a PUT statement, you are writing to FILE PRINT. You do not have as much control over the font characteristics of the output as you would in a PROC PRINT or a PROC REPORT. Although you could define color coding for a data step program, by using a custom TABLE template or writing the text with their own HTML tags or possibly using STYLE= overrides, if your mail system is set to PLAIN TEXT, there is really nothing you can do to override what the mail system format is - -from inside SAS. You have to play by the rules of the mail system you are using. &lt;BR /&gt;
 &lt;BR /&gt;
 IF your mail system allows HTML content and IF you put HTML tags into your PUT statements you might be able to alter the color as you want. But those are 2 big IFs...and even if you SEND HTML e-mail content -- the receiving e-mail system has to allow HTML email content, too. You might want to check with the documentation or Tech Support -- I believe you have to change the content-type for the email engine if you want to send HTML. And, of course, you have to check with your mail administrators to see what they will allow.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 11 Apr 2011 15:51:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-E-MAIL-FORMAT-PROBLEM/m-p/47603#M12787</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-04-11T15:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: SAS E-MAIL  FORMAT PROBLEM</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-E-MAIL-FORMAT-PROBLEM/m-p/47604#M12788</link>
      <description>My Code is:&lt;BR /&gt;
&lt;BR /&gt;
DATA _NULL_;&lt;BR /&gt;
set libcan.can;&lt;BR /&gt;
FILE outmail1;&lt;BR /&gt;
if id not in (8 9) then&lt;BR /&gt;
do; &lt;BR /&gt;
PUT "There is an error in the system, please check";&lt;BR /&gt;
END;&lt;BR /&gt;
if id in (1 2 3 4) then&lt;BR /&gt;
do;&lt;BR /&gt;
end;&lt;BR /&gt;
PUT "Completed Successfully";&lt;BR /&gt;
&lt;BR /&gt;
stop;&lt;BR /&gt;
RUN;</description>
      <pubDate>Tue, 12 Apr 2011 06:34:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-E-MAIL-FORMAT-PROBLEM/m-p/47604#M12788</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2011-04-12T06:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAS E-MAIL  FORMAT PROBLEM</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-E-MAIL-FORMAT-PROBLEM/m-p/47605#M12789</link>
      <description>So my original code is this which contains set statement. So i can manage the "id" column. Anyway everything works fine in my code except TEXT FORMATS.&lt;BR /&gt;
&lt;BR /&gt;
As i previously mentions, my only concern is to change the formats of the texts.&lt;BR /&gt;
&lt;BR /&gt;
There is an error in the system, please check =&amp;gt; should be bold and red&lt;BR /&gt;
&lt;BR /&gt;
Completed Successfully =&amp;gt; should be bold and blue&lt;BR /&gt;
&lt;BR /&gt;
If it is possible, could you please send me the code of how to manipulate text formats in the program. It would be great for me.&lt;BR /&gt;
&lt;BR /&gt;
Thanx</description>
      <pubDate>Tue, 12 Apr 2011 06:38:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-E-MAIL-FORMAT-PROBLEM/m-p/47605#M12789</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2011-04-12T06:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAS E-MAIL  FORMAT PROBLEM</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-E-MAIL-FORMAT-PROBLEM/m-p/47606#M12790</link>
      <description>I've checked the link you send me about the topic:&lt;BR /&gt;
[Off-topic] Forum Markup &lt;BR /&gt;
and get confused a little bit.&lt;BR /&gt;
Could you please cleatrify that where can i write this code to my original code that i can see the text as a link:&lt;BR /&gt;
&lt;A href="http://www.google.com" target="_blank"&gt;GOOGLE&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
(I really need this thing)&lt;BR /&gt;
&lt;BR /&gt;
I tried to write the code to my PUT statement but nothing happened. Could you please give an example depending on my code.</description>
      <pubDate>Tue, 12 Apr 2011 06:56:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-E-MAIL-FORMAT-PROBLEM/m-p/47606#M12790</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2011-04-12T06:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: SAS E-MAIL  FORMAT PROBLEM</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-E-MAIL-FORMAT-PROBLEM/m-p/47607#M12791</link>
      <description>Most modern email clients interpret HTML tags.  I know that SAS can send emails as HTML, so you could just use the html tags for font color.</description>
      <pubDate>Tue, 12 Apr 2011 12:10:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-E-MAIL-FORMAT-PROBLEM/m-p/47607#M12791</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2011-04-12T12:10:45Z</dc:date>
    </item>
  </channel>
</rss>

