<?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 alchemy (%- turned into carriage return) in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-alchemy-turned-into-carriage-return/m-p/2030#M897</link>
    <description>The % behavior is a bug, not an undocumented feature.  It is fixed in the next SAS 9 release.&lt;BR /&gt;
&lt;BR /&gt;
-- David Kelley, SAS</description>
    <pubDate>Fri, 05 Jan 2007 08:55:47 GMT</pubDate>
    <dc:creator>David_SAS</dc:creator>
    <dc:date>2007-01-05T08:55:47Z</dc:date>
    <item>
      <title>ODS alchemy (%- turned into carriage return)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-alchemy-turned-into-carriage-return/m-p/2027#M894</link>
      <description>Hi all.&lt;BR /&gt;
&lt;BR /&gt;
I'm trying to circumvent what seems to be an undocumented problem : when the ODS gives birth to an ODS file with a table containing the "%anything-", this text is turned into a new line tag (&lt;BR /&gt; ).&lt;BR /&gt;
Any text included between the % and the - signs lead to the same result, except for a second % sign, like %%-, which only displays as %- in the final output.&lt;BR /&gt;
&lt;BR /&gt;
The problem only appears with SAS 9, as it seems to be caused by the ODS HTML4 encoding. In either SAS v8 or ODS HTML3, the problem does not appear.&lt;BR /&gt;
&lt;BR /&gt;
How can I turn this transformation off without changing neither my ODS destination, nor my text string ?&lt;BR /&gt;
&lt;BR /&gt;
Example below :&lt;BR /&gt;
&lt;BR /&gt;
data sample ;&lt;BR /&gt;
valeur="5.50%-07" ; output; &lt;BR /&gt;
run ; &lt;BR /&gt;
ods html body = "C:\temp\testv9.html"  ;&lt;BR /&gt;
proc print data = sample ; &lt;BR /&gt;
run ; &lt;BR /&gt;
ods html close;&lt;BR /&gt;
&lt;BR /&gt;
ods html3 body = "C:\temp\testv8.html" ; &lt;BR /&gt;
proc print data = sample ; &lt;BR /&gt;
run ; &lt;BR /&gt;
ods html3 close;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance.&lt;BR /&gt;
&lt;BR /&gt;
Olivier</description>
      <pubDate>Thu, 04 Jan 2007 13:49:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-alchemy-turned-into-carriage-return/m-p/2027#M894</guid>
      <dc:creator>Olivier</dc:creator>
      <dc:date>2007-01-04T13:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: ODS alchemy (%- turned into carriage return)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-alchemy-turned-into-carriage-return/m-p/2028#M895</link>
      <description>Adding a % will work.  Adding protectspecialchars as a style over ride will also work.&lt;BR /&gt;
&lt;BR /&gt;
data sample ;&lt;BR /&gt;
valeur="5.50%-07" ; output; &lt;BR /&gt;
run ; &lt;BR /&gt;
ods html body = "testv9.html" ;&lt;BR /&gt;
proc print data = sample ; &lt;BR /&gt;
    var valeur / style=[protectspecialchars=yes];&lt;BR /&gt;
    &lt;BR /&gt;
run ; &lt;BR /&gt;
ods html close;&lt;BR /&gt;
&lt;BR /&gt;
ods html3 body = "testv8.html" ; &lt;BR /&gt;
proc print data = sample ; &lt;BR /&gt;
run ; &lt;BR /&gt;
ods html3 close;</description>
      <pubDate>Thu, 04 Jan 2007 17:05:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-alchemy-turned-into-carriage-return/m-p/2028#M895</guid>
      <dc:creator>Eric_SAS</dc:creator>
      <dc:date>2007-01-04T17:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: ODS alchemy (%- turned into carriage return)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-alchemy-turned-into-carriage-return/m-p/2029#M896</link>
      <description>Hi Eric.&lt;BR /&gt;
&lt;BR /&gt;
The protectspecialchars style override was something I already thought of ; does not work in this case, since it only seems to protect characters like &amp;lt;, &amp;gt; or &amp;amp; -- which have meaning in HTML.&lt;BR /&gt;
Anyway, my very concern is WHERE THE HELL is ODS told to transform any %...- string into &lt;BR /&gt; ? Didn't find any hint of that in the HTML-related tagsets. Is it hard-coded somewhere users cannot access ?&lt;BR /&gt;
&lt;BR /&gt;
This is just for personnal knowledge, since %% solves the core problem.&lt;BR /&gt;
&lt;BR /&gt;
Olivier</description>
      <pubDate>Fri, 05 Jan 2007 08:34:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-alchemy-turned-into-carriage-return/m-p/2029#M896</guid>
      <dc:creator>Olivier</dc:creator>
      <dc:date>2007-01-05T08:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: ODS alchemy (%- turned into carriage return)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-alchemy-turned-into-carriage-return/m-p/2030#M897</link>
      <description>The % behavior is a bug, not an undocumented feature.  It is fixed in the next SAS 9 release.&lt;BR /&gt;
&lt;BR /&gt;
-- David Kelley, SAS</description>
      <pubDate>Fri, 05 Jan 2007 08:55:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-alchemy-turned-into-carriage-return/m-p/2030#M897</guid>
      <dc:creator>David_SAS</dc:creator>
      <dc:date>2007-01-05T08:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: ODS alchemy (%- turned into carriage return)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-alchemy-turned-into-carriage-return/m-p/2031#M898</link>
      <description>Thank you David.&lt;BR /&gt;
&lt;BR /&gt;
I'll wait for 9.2 to fix it.</description>
      <pubDate>Fri, 05 Jan 2007 09:09:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-alchemy-turned-into-carriage-return/m-p/2031#M898</guid>
      <dc:creator>Olivier</dc:creator>
      <dc:date>2007-01-05T09:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: ODS alchemy (%- turned into carriage return)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-alchemy-turned-into-carriage-return/m-p/2032#M899</link>
      <description>I apologize, I must have run the test with the wrong version of SAS.&lt;BR /&gt;
&lt;BR /&gt;
protectspecialchars=no &lt;BR /&gt;
&lt;BR /&gt;
had a good chance of working because the same code that is protecting&lt;BR /&gt;
those characters is also doing the percent processing.  If setting it to&lt;BR /&gt;
no had cause it to skip that code altogether, it would have been a good&lt;BR /&gt;
work around.&lt;BR /&gt;
&lt;BR /&gt;
But it is not.</description>
      <pubDate>Mon, 08 Jan 2007 17:41:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-alchemy-turned-into-carriage-return/m-p/2032#M899</guid>
      <dc:creator>Eric_SAS</dc:creator>
      <dc:date>2007-01-08T17:41:37Z</dc:date>
    </item>
  </channel>
</rss>

