<?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: Can one interject HTML into a ODS HTML stream? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-one-interject-HTML-into-a-ODS-HTML-stream/m-p/646275#M24060</link>
    <description>Look at the documentation for ODS Escapechar and the RAW function.&lt;BR /&gt;</description>
    <pubDate>Fri, 08 May 2020 17:25:18 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2020-05-08T17:25:18Z</dc:date>
    <item>
      <title>Can one interject HTML into a ODS HTML stream?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-one-interject-HTML-into-a-ODS-HTML-stream/m-p/646270#M24059</link>
      <description>&lt;P&gt;Many people want to remove certain HTML elements generated by ODS HTML, but how do you add an &lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #333333; cursor: text; font-family: Arial,Helvetica,sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 27.42px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;HTML element?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #333333; cursor: text; font-family: Arial,Helvetica,sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 27.42px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&lt;STRONG&gt;Example&lt;/STRONG&gt;: How does one add an horizontal rule (&lt;SPAN style="background-color: transparent; box-sizing: border-box; color: #333333; cursor: text; display: inline; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 27.42px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&amp;lt;HR&amp;gt; &lt;/SPAN&gt;) before and after some PROC ODSTEXT output?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 18:04:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-one-interject-HTML-into-a-ODS-HTML-stream/m-p/646270#M24059</guid>
      <dc:creator>PhilC</dc:creator>
      <dc:date>2020-05-11T18:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can one interject HTML into a ODS HTML stream?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-one-interject-HTML-into-a-ODS-HTML-stream/m-p/646275#M24060</link>
      <description>Look at the documentation for ODS Escapechar and the RAW function.&lt;BR /&gt;</description>
      <pubDate>Fri, 08 May 2020 17:25:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-one-interject-HTML-into-a-ODS-HTML-stream/m-p/646275#M24060</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-05-08T17:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: Can one interject HTML into a ODS HTML stream?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-one-interject-HTML-into-a-ODS-HTML-stream/m-p/646330#M24062</link>
      <description>&lt;P&gt;Hi;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Although RAW might work for HTML and RTF, I found that just using the tags in a TITLE and FOOTNOTE will also work. When you do insert HTML tags, you also need to remember to do a PROTECTSPECIALCHARS=OFF so that the HTML tag brackets are not "protected" by ODS:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1588983849784.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39227i91A8560692123D63/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1588983849784.png" alt="Cynthia_sas_0-1588983849784.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 May 2020 00:24:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-one-interject-HTML-into-a-ODS-HTML-stream/m-p/646330#M24062</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-05-09T00:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can one interject HTML into a ODS HTML stream?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-one-interject-HTML-into-a-ODS-HTML-stream/m-p/646690#M24075</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;,&amp;nbsp; &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is something going on with my two SAS environments that is preventing this from working.&amp;nbsp; That is using "^{raw …}", using "^S={protectspecialchar=off&amp;gt;…" and "^{style[protectspecialchars=off] …}".&lt;BR /&gt;&lt;BR /&gt;BTW, if the DIV tags are supposed to surround the HR then should it not be: ?&lt;/P&gt;
&lt;PRE&gt;&amp;lt;div&amp;gt;&amp;lt;hr/&amp;gt;&amp;lt;/div&amp;gt;
           ^&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The loose parsing rules of HTML in web browsers probably interprets it correctly.&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 13:53:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-one-interject-HTML-into-a-ODS-HTML-stream/m-p/646690#M24075</guid>
      <dc:creator>PhilC</dc:creator>
      <dc:date>2020-05-11T13:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can one interject HTML into a ODS HTML stream?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-one-interject-HTML-into-a-ODS-HTML-stream/m-p/646692#M24076</link>
      <description>&lt;P&gt;relevant link: &lt;A href="https://www.lexjansen.com/wuss/2010/DataPresentation/3000_5_DPR-haworth.pdf" target="_self"&gt;"ODS Tips &amp;amp; Tricks", Lauren Haworth, Genentech, Inc., circa Sep. 2010, via LexJensen.com&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 14:02:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-one-interject-HTML-into-a-ODS-HTML-stream/m-p/646692#M24076</guid>
      <dc:creator>PhilC</dc:creator>
      <dc:date>2020-05-11T14:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can one interject HTML into a ODS HTML stream?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-one-interject-HTML-into-a-ODS-HTML-stream/m-p/646732#M24077</link>
      <description>&lt;P&gt;Hi, yes, that should have been a /div at the end of the statement, my bad.&lt;BR /&gt;&lt;BR /&gt;The ^S={xxx=yyy} is the original ESCAPECHAR syntax. the ^{style[xxx=yyy] .... } is the newest syntax for ESCAPECHAR. I have used the ^{raw} with HTML tags but not for just a HR. However, since you don't show all your code it's hard to comment. I started with the simplest approach first to do what you want, which was just to put horizontal rule on either side of the table. More advanced requirements might need the use of ^{raw} -- but protectspecialchars=off should always be specified, either in a style override or in a style template when you use HTML tags or RTF control strings.&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 14:47:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-one-interject-HTML-into-a-ODS-HTML-stream/m-p/646732#M24077</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-05-11T14:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can one interject HTML into a ODS HTML stream?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-one-interject-HTML-into-a-ODS-HTML-stream/m-p/646788#M24078</link>
      <description>&lt;P&gt;OK, got it to work with SAS Batch... But it doesn't work at all when I insert it into my code of ~650 lines, using SAS Batch. &lt;BR /&gt;&lt;BR /&gt;My process in summary: I tried my code SAS batch, &lt;STRONG&gt;didn't work&lt;/STRONG&gt;. Then tried this in Enterprise Guide, trying to keep it simple, using only your code, &lt;STRONG&gt;didn't work&lt;/STRONG&gt;! Then I tried your code, keeping it simple, in SAS Batch, -- &lt;STRONG&gt;it works&lt;/STRONG&gt; -- ( ^{Raw...} works as well&amp;nbsp; &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;).&lt;BR /&gt;&lt;BR /&gt;Now something is happening in my code that breaks this feature. And that may be out of the scope of this article.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Both of you helped solve this, thanks.&amp;nbsp; If I find out something useful I'll post it here.&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 16:06:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-one-interject-HTML-into-a-ODS-HTML-stream/m-p/646788#M24078</guid>
      <dc:creator>PhilC</dc:creator>
      <dc:date>2020-05-11T16:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can one interject HTML into a ODS HTML stream?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-one-interject-HTML-into-a-ODS-HTML-stream/m-p/646830#M24079</link>
      <description>&lt;P&gt;I could not get this to work:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods escapechar= "^";
title1 "^{style[protectspecialchars=off] &amp;lt;div&amp;gt;&amp;lt;hr/&amp;gt;&amp;lt;/div&amp;gt;}";
footnote "^{style[protectspecialchars=off] &amp;lt;div&amp;gt;&amp;lt;hr/&amp;gt;&amp;lt;/div&amp;gt;}";
proc odstext;
  p "Note: the following totals should add together:" ;
  p "14B + 14C + 14E + 14F = 15B" / style=[color=purple fontsize=15pt];
run;
title;footnote;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;but I could get this to work:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods escapechar= "^";
proc odstext;
  p "^{style[protectspecialchars=off] &amp;lt;div&amp;gt;&amp;lt;hr/&amp;gt;&amp;lt;/div&amp;gt;}";
  p "Note: the following totals should add together:" ;
  p "14B + 14C + 14E + 14F = 15B" / style=[color=purple fontsize=15pt];
  p "^{style[protectspecialchars=off] &amp;lt;div&amp;gt;&amp;lt;hr/&amp;gt;&amp;lt;/div&amp;gt;}";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I still don't know the reason behind why &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;'s solution does not works in my code when using title and footnotes.&amp;nbsp; But I did succeed in putting the horizontal rules where I wanted them in the output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again, for the help.&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 18:01:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-one-interject-HTML-into-a-ODS-HTML-stream/m-p/646830#M24079</guid>
      <dc:creator>PhilC</dc:creator>
      <dc:date>2020-05-11T18:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can one interject HTML into a ODS HTML stream?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-one-interject-HTML-into-a-ODS-HTML-stream/m-p/646834#M24080</link>
      <description>&lt;P&gt;This small sample worked in my SAS Batch SAS environment, but not in my Enterprise Guide environment:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods noproctitle escapechar= "^" ;
ods html style=Festival ;
  title      "^{style[protectspecialchars=off] &amp;lt;div&amp;gt;&amp;lt;hr/&amp;gt;&amp;lt;/div&amp;gt;}";
  footnote      "^{style[protectspecialchars=off] &amp;lt;div&amp;gt;&amp;lt;hr/&amp;gt;&amp;lt;/div&amp;gt;}";

  proc odstext data=sashelp.class(obs=1) ;
    p 'Student Info' / style=systemtitle ;
    list ;
      item 'Student name is ' || name ;
      item 'Age: ' || put (age , 2. ) ;
      item 'Sex: ' || trim(sex) ;
      item 'Height: ' || put(height , 5.1 ) ;
    end;
  run;
  title ; footnote ;
  proc odstext data=sashelp.class(FIRSTOBS=2 obs=2) ;
    p 'Student Info' / style=systemtitle ;
    list ;
      item 'Student name is ' || name ;
      item 'Age: ' || put (age , 2. ) ;
      item 'Sex: ' || trim(sex) ;
      item 'Height: ' || put(height , 5.1 ) ;
    end;
  run;
ods html close ;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This is code works independent of the &lt;FONT face="Consolas" style="background-color: #f0f2f5;"&gt;noproctitle&lt;/FONT&gt; option being set.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 18:08:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-one-interject-HTML-into-a-ODS-HTML-stream/m-p/646834#M24080</guid>
      <dc:creator>PhilC</dc:creator>
      <dc:date>2020-05-11T18:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can one interject HTML into a ODS HTML stream?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-one-interject-HTML-into-a-ODS-HTML-stream/m-p/651811#M24148</link>
      <description>&lt;P&gt;I just learned about this. This could be useful in situations using data steps. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=odsadvug&amp;amp;docsetTarget=n134fmlxqb2nb3n1ajxdwlzurxvh.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_self"&gt;"LINE Method" from SAS® 9.4 ODS: Advanced Topics, 3e &lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/ODS-Object/m-p/651826#U651826" target="_self"&gt;SAS Communities / Programming - ODS Object&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 18:36:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-one-interject-HTML-into-a-ODS-HTML-stream/m-p/651811#M24148</guid>
      <dc:creator>PhilC</dc:creator>
      <dc:date>2020-05-29T18:36:38Z</dc:date>
    </item>
  </channel>
</rss>

