<?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 HTML TAGS ARE NOT WORKING IN SAS in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/HTML-TAGS-ARE-NOT-WORKING-IN-SAS/m-p/107190#M9924</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying something new on this&amp;nbsp; Christmas with the SAS..&lt;/P&gt;&lt;P&gt;I am writing a mail to all my friends saying merry Christmas by writing some code in SAS and sending that too with SAS.&lt;/P&gt;&lt;P&gt;In the process of sending wishes i am getting some ODD results from SAS.Can any one please get me out of this problems and lets me to send greetings to all..&lt;/P&gt;&lt;P&gt;I was wrote bellow code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;options symbolgen ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;filename mail email from = "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:kuridisanjeev@gmail.com"&gt;kuridisanjeev@gmail.com&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SUBJECT="MERRY CHRISTMAS"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;to="&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:kuridisanjeev@gmail.com"&gt;kuridisanjeev@gmail.com&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CT = "TEXT/HTML";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ods _all_ close;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ODS LISTING CLOSE;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ODS HTML BODY = mail RS=NONE STYLE = NORMAL;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Data _NULL_;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;file print ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;put "&amp;lt;body bgcolor='biyg'&amp;gt;";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;put "&amp;lt;center&amp;gt;&amp;lt;IMG SRC='C:\Users\sanjeevK\Desktop.JPG' &amp;lt;br&amp;gt;&amp;lt;/center&amp;gt;" ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;put "&amp;lt;h2&amp;gt;&amp;lt;left&amp;gt;&amp;lt;font size='+6' face='monotype corsiva' color='magenta'&amp;gt;&amp;lt;BLINK&amp;gt;&amp;lt;b&amp;gt;MERRY CHRISTMAS &amp;lt;/b&amp;gt;&amp;lt;/BLINK&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/left&amp;gt;&amp;lt;/h2&amp;gt;"; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;put @22"&amp;lt;font size= '+1'&amp;nbsp; color='bio'&amp;gt;&amp;lt;blink&amp;gt;@&amp;lt;/blink&amp;gt;&amp;lt;/font&amp;gt;";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;do i=0 to 18;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;b=substr(repeat('SA',i),1,2*i+1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;put @(20-i) "&amp;lt;blink&amp;gt;* &amp;lt;/blink&amp;gt;&amp;lt;font size=2pt color= green &amp;gt;" b "&amp;lt;/font&amp;gt;&amp;lt;blink&amp;gt;*&amp;lt;/blink&amp;gt;";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;end;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;put @23'||&amp;nbsp; ||'; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; put @23'||&amp;nbsp; ||';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; ODS html close;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above code was executing with out any error and warning and i am getting the mail also...&lt;/P&gt;&lt;P&gt;But the mail not showing what actually i was sent..&lt;/P&gt;&lt;P&gt;Here i am attaching my mail and i desired output which needs to be show in the mail..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me on this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards..&lt;/P&gt;&lt;P&gt;Sanjeev.K&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11010i8995258C13716B1C/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Desired output.jpg" title="Desired output.jpg" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 23 Dec 2012 11:14:44 GMT</pubDate>
    <dc:creator>kuridisanjeev</dc:creator>
    <dc:date>2012-12-23T11:14:44Z</dc:date>
    <item>
      <title>HTML TAGS ARE NOT WORKING IN SAS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/HTML-TAGS-ARE-NOT-WORKING-IN-SAS/m-p/107190#M9924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying something new on this&amp;nbsp; Christmas with the SAS..&lt;/P&gt;&lt;P&gt;I am writing a mail to all my friends saying merry Christmas by writing some code in SAS and sending that too with SAS.&lt;/P&gt;&lt;P&gt;In the process of sending wishes i am getting some ODD results from SAS.Can any one please get me out of this problems and lets me to send greetings to all..&lt;/P&gt;&lt;P&gt;I was wrote bellow code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;options symbolgen ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;filename mail email from = "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:kuridisanjeev@gmail.com"&gt;kuridisanjeev@gmail.com&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SUBJECT="MERRY CHRISTMAS"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;to="&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:kuridisanjeev@gmail.com"&gt;kuridisanjeev@gmail.com&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CT = "TEXT/HTML";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ods _all_ close;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ODS LISTING CLOSE;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ODS HTML BODY = mail RS=NONE STYLE = NORMAL;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Data _NULL_;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;file print ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;put "&amp;lt;body bgcolor='biyg'&amp;gt;";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;put "&amp;lt;center&amp;gt;&amp;lt;IMG SRC='C:\Users\sanjeevK\Desktop.JPG' &amp;lt;br&amp;gt;&amp;lt;/center&amp;gt;" ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;put "&amp;lt;h2&amp;gt;&amp;lt;left&amp;gt;&amp;lt;font size='+6' face='monotype corsiva' color='magenta'&amp;gt;&amp;lt;BLINK&amp;gt;&amp;lt;b&amp;gt;MERRY CHRISTMAS &amp;lt;/b&amp;gt;&amp;lt;/BLINK&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/left&amp;gt;&amp;lt;/h2&amp;gt;"; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;put @22"&amp;lt;font size= '+1'&amp;nbsp; color='bio'&amp;gt;&amp;lt;blink&amp;gt;@&amp;lt;/blink&amp;gt;&amp;lt;/font&amp;gt;";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;do i=0 to 18;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;b=substr(repeat('SA',i),1,2*i+1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;put @(20-i) "&amp;lt;blink&amp;gt;* &amp;lt;/blink&amp;gt;&amp;lt;font size=2pt color= green &amp;gt;" b "&amp;lt;/font&amp;gt;&amp;lt;blink&amp;gt;*&amp;lt;/blink&amp;gt;";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;end;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;put @23'||&amp;nbsp; ||'; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; put @23'||&amp;nbsp; ||';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; ODS html close;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above code was executing with out any error and warning and i am getting the mail also...&lt;/P&gt;&lt;P&gt;But the mail not showing what actually i was sent..&lt;/P&gt;&lt;P&gt;Here i am attaching my mail and i desired output which needs to be show in the mail..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me on this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards..&lt;/P&gt;&lt;P&gt;Sanjeev.K&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11010i8995258C13716B1C/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Desired output.jpg" title="Desired output.jpg" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Dec 2012 11:14:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/HTML-TAGS-ARE-NOT-WORKING-IN-SAS/m-p/107190#M9924</guid>
      <dc:creator>kuridisanjeev</dc:creator>
      <dc:date>2012-12-23T11:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: HTML TAGS ARE NOT WORKING IN SAS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/HTML-TAGS-ARE-NOT-WORKING-IN-SAS/m-p/107191#M9925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FYI...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ran this Code in both SAS 9.2 and SAS EG4.1,Both giving almost same result...&lt;/P&gt;&lt;P&gt;And in my above code i wrote "ODS HTML BODY="&lt;STRONG&gt;C:\Users\sanjeevK\test.HTML&lt;/STRONG&gt;" instead of writing "&lt;STRONG&gt;ODS HTML BODY = mail RS=NONE STYLE = NORMAL;"..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;A HTML file was creating in the Specified path and &lt;SPAN class="hP" id=":w1"&gt;CHRISTMAS tree was displaying but "&lt;STRONG&gt;*" &lt;/STRONG&gt;symbol was not blinking(i wrote * in blink tag in above code)..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hP"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hP"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Dec 2012 11:39:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/HTML-TAGS-ARE-NOT-WORKING-IN-SAS/m-p/107191#M9925</guid>
      <dc:creator>kuridisanjeev</dc:creator>
      <dc:date>2012-12-23T11:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: HTML TAGS ARE NOT WORKING IN SAS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/HTML-TAGS-ARE-NOT-WORKING-IN-SAS/m-p/107192#M9926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; As far as I know, the HTML spec says that an HTML file can have only 1 &amp;lt;BODY&amp;gt; tag. ODS HTML writes a &amp;lt;BODY&amp;gt; tag and your code writes a &amp;lt;BODY&amp;gt; tag. In addition, this article implies that the &amp;lt;BLINK&amp;gt; tag doesn't work for images: &lt;A href="http://www.techrepublic.com/article/html-shop-of-horrors-blink-tag/6310688" title="http://www.techrepublic.com/article/html-shop-of-horrors-blink-tag/6310688"&gt;HTML Shop of Horrors: Blink Tag | TechRepublic&lt;/A&gt; and this article implies that the &amp;lt;BLINK&amp;gt; tag could be harmful: &lt;A href="http://boingboing.net/2010/04/08/blink-tag-considered.html" title="http://boingboing.net/2010/04/08/blink-tag-considered.html"&gt;http://boingboing.net/2010/04/08/blink-tag-considered.html&lt;/A&gt; . And, I'm not sure what this W3C snippet refers to, but it seems odd: &lt;A href="http://www.w3.org/Style/HTML40-plus-blink.dtd" title="http://www.w3.org/Style/HTML40-plus-blink.dtd"&gt;http://www.w3.org/Style/HTML40-plus-blink.dtd&lt;/A&gt;; however, this info on the W3C site seems to imply that you should not use &amp;lt;BLINK&amp;gt;: &lt;A href="http://www.w3.org/wiki/HTML/Elements/blink" title="http://www.w3.org/wiki/HTML/Elements/blink"&gt;HTML/Elements/blink - W3C Wiki&lt;/A&gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Using BODY=email will only cause the HTML text to be written to the email. Images are pointed to with the SRC= attribute of an &amp;lt;IMG&amp;gt; tag. Since your &amp;lt;IMG&amp;gt; tag points to your local C: drive, unless EVERY person who gets your mail has access to your personal C: drive, they won't see the IMAGE tag. Or, you use a relative reference in your &amp;lt;IMG&amp;gt; tag, and you attach the image to your email.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Perhaps you could send the greetings of the season a different way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11473iDE13C216E0436A08/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="xmas_macro.png" title="xmas_macro.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Dec 2012 17:57:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/HTML-TAGS-ARE-NOT-WORKING-IN-SAS/m-p/107192#M9926</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-12-23T17:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: HTML TAGS ARE NOT WORKING IN SAS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/HTML-TAGS-ARE-NOT-WORKING-IN-SAS/m-p/107193#M9927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cynthia..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your prompt..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I forgot to mention one things in my above post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Executed same code(which mentioned in my earlier post) in SAS EG 4.3,And i opened my mail box in &lt;STRONG&gt;Mozilla Thunderbird&lt;/STRONG&gt;.mail body showing perfectly what i am looking for,and even Blinking also happening for " * "..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why this is not happening in Gmail ??&lt;/P&gt;&lt;P&gt;Any Idea on this????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sanjeev.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Dec 2012 09:18:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/HTML-TAGS-ARE-NOT-WORKING-IN-SAS/m-p/107193#M9927</guid>
      <dc:creator>kuridisanjeev</dc:creator>
      <dc:date>2012-12-24T09:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: HTML TAGS ARE NOT WORKING IN SAS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/HTML-TAGS-ARE-NOT-WORKING-IN-SAS/m-p/107194#M9928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Well, that tells me that 1) the problem isn't a SAS problem, it's a rendering problem. And 2) it tells me that there's something different between Mozilla and Gmail. So, my guess would be that 3) the the folks at Google don't allow non-conforming HTML tags. However, the question "Why this is not happening in Gmail" is a question for Google Tech Support or Gmail Tech Support. Otherwise, it's just a guess as to why it works in Mozilla and not in Gmail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Dec 2012 14:55:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/HTML-TAGS-ARE-NOT-WORKING-IN-SAS/m-p/107194#M9928</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-12-24T14:55:38Z</dc:date>
    </item>
  </channel>
</rss>

