<?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: ods html text in SAS 9.4 in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-html-text-in-SAS-9-4/m-p/225068#M14310</link>
    <description>&lt;P&gt;Dear Bruno,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanx for the example. Looks easy. I'll try that one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But generally is there a way (maybe through sas templates) to influence the ods html text - i.e. to remove the &amp;lt;table&amp;gt; around it? Unfortunately I have never used that but heard about it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best wishes&lt;/P&gt;&lt;P&gt;Eva&lt;/P&gt;</description>
    <pubDate>Fri, 11 Sep 2015 06:22:28 GMT</pubDate>
    <dc:creator>Eva</dc:creator>
    <dc:date>2015-09-11T06:22:28Z</dc:date>
    <item>
      <title>ods html text in SAS 9.4</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-html-text-in-SAS-9-4/m-p/224909#M14305</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are migrating to SAS 9.4 from SAS 9.2. And I found a difference in the ods html text output, please see code below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS 9.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;ods html file='C:\data\test.html'(no_top_matter no_bottom_matter);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;ods html text="This is a test.";&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;ods html close;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;generates this html output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;lt;div class="l UserText"&amp;gt;This is a test.&amp;lt;/div&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS 9.4 same code, html output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;lt;table width="100%" style=" border: 0px solid #000000; border-spacing: 0px;" cellspacing="0" cellpadding="0" rules="none" frame="void"&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;lt;tr&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;lt;td class="l usertext"&amp;gt;This is a test.&amp;lt;/td&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;lt;/tr&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;lt;/table&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a problem for me because I have a html output where I generate 3 report and use this layout (with html &amp;lt;table&amp;gt;): first row: 2 reports next to each other. Second row: 3rd report below the first 2 reports from row 1. I programmed it like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Ods html text = “&amp;lt;table&amp;gt;”;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Ods html text =” &amp;lt;tr&amp;gt;”;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Ods html text = “ &amp;lt;td&amp;gt;”;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;%output_report1;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Ods html text = “ &amp;lt;/td&amp;gt;”&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Ods html text = “ &amp;lt;td&amp;gt;”;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;%output_report2;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Ods html text = “ &amp;lt;/td&amp;gt;”;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Ods html text =” &amp;lt;/tr&amp;gt;”;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Ods html text = “ &amp;lt;tr&amp;gt;”;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Ods html text = ” &amp;lt;td colspan=’2’&amp;gt;”;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;%output_report3;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Ods html text = “ &amp;lt;/td&amp;gt;”;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Ods html text =” &amp;lt;/tr&amp;gt;”;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Ods html text = “&amp;lt;/table&amp;gt;”;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the new surrounding code of ods html text in SAS 9.4 this does no longer works and returns a real weird output/layout.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my question is: Is there a way to tell ods html text to react like in SAS9.2 and not to use the &amp;lt;table&amp;gt; Code around my text?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best wishes&lt;/P&gt;&lt;P&gt;Eva&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2015 06:55:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-html-text-in-SAS-9-4/m-p/224909#M14305</guid>
      <dc:creator>Eva</dc:creator>
      <dc:date>2015-09-10T06:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: ods html text in SAS 9.4</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-html-text-in-SAS-9-4/m-p/224927#M14306</link>
      <description>&lt;P&gt;Hi Eva&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a look at the &lt;A href="http://support.sas.com/documentation/cdl/en/odsug/67921/HTML/default/viewer.htm#p06ji2uhvayhq5n1eik2z2rf2ga8.htm" target="_blank"&gt;ODS LAYOUT&lt;/A&gt; functionality.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The sample below shows an example, how to use it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods html file="c:\temp\sample.html";

ods layout gridded columns=2;
ods region;
title "title 1";
  proc print data=sashelp.class(obs=5);
    where sex = "F";
  run;

ods region;
title "title 2";
  proc print data=sashelp.class(obs=5);
    where sex = "F";
  run;

ods region column_span=2;
title "title 2";
  proc print data=sashelp.cars(obs=10);
  run;

ods layout end;
ods html close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Sep 2015 11:26:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-html-text-in-SAS-9-4/m-p/224927#M14306</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2015-09-10T11:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: ods html text in SAS 9.4</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-html-text-in-SAS-9-4/m-p/224933#M14307</link>
      <description>&lt;P&gt;Close the HTML destination, use DATA _NULL_ steps to write your text to the file, and re-open the HTML destination with FILENAME MOD.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2015 11:47:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-html-text-in-SAS-9-4/m-p/224933#M14307</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2015-09-10T11:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: ods html text in SAS 9.4</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-html-text-in-SAS-9-4/m-p/225068#M14310</link>
      <description>&lt;P&gt;Dear Bruno,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanx for the example. Looks easy. I'll try that one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But generally is there a way (maybe through sas templates) to influence the ods html text - i.e. to remove the &amp;lt;table&amp;gt; around it? Unfortunately I have never used that but heard about it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best wishes&lt;/P&gt;&lt;P&gt;Eva&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2015 06:22:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-html-text-in-SAS-9-4/m-p/225068#M14310</guid>
      <dc:creator>Eva</dc:creator>
      <dc:date>2015-09-11T06:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: ods html text in SAS 9.4</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-html-text-in-SAS-9-4/m-p/225319#M14328</link>
      <description>Hi:&lt;BR /&gt;Unfortunately, it is NOT the style template that determines which HTML tags get written to the output file. That is the job of the TAGSET template that controls the ODS destination "markup" language that is written around the output from the SAS procedure.. If you want to alter the HTML that is automatically written by ODS, then you either need to switch to a different HTML-based destination or work with Tech Support or explore Bruno's suggestion for using ODS LAYOUT/ODS REGION or explore Kurt's suggestion of using DATA _NULL_.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Sun, 13 Sep 2015 17:14:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-html-text-in-SAS-9-4/m-p/225319#M14328</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2015-09-13T17:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: ods html text in SAS 9.4</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-html-text-in-SAS-9-4/m-p/226515#M14382</link>
      <description>&lt;P&gt;Dear Cythia,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for the answer. A pity though that I can't change it.I prefered the &amp;lt;div&amp;gt; around the text to the &amp;lt;table&amp;gt;, because logically a text has nothing to do with a table.&lt;/P&gt;&lt;P&gt;I'll use Bruno's suggestion then with the ods layout.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best wishes&lt;/P&gt;&lt;P&gt;Eva&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2015 07:56:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-html-text-in-SAS-9-4/m-p/226515#M14382</guid>
      <dc:creator>Eva</dc:creator>
      <dc:date>2015-09-21T07:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: ods html text in SAS 9.4</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-html-text-in-SAS-9-4/m-p/261603#M15527</link>
      <description>&lt;P&gt;So now that I know I can't change the way ods html text is written into the html code I use this solution:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
     file _webout;
     put "&amp;lt;table&amp;gt;";
     put " &amp;lt;tr&amp;gt;";
     put "  &amp;lt;td&amp;gt;";
run;

......

data _null_;
     file _webout;
     put "  &amp;lt;/td&amp;gt;";
     put " &amp;lt;/tr&amp;gt;";
     put "&amp;lt;/table&amp;gt;";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 06:27:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-html-text-in-SAS-9-4/m-p/261603#M15527</guid>
      <dc:creator>Eva</dc:creator>
      <dc:date>2016-04-06T06:27:23Z</dc:date>
    </item>
  </channel>
</rss>

