<?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 ODS from :: Dataset to excel and Handeling of &amp;quot;%&amp;quot; in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-from-Dataset-to-excel-and-Handeling-of-quot-quot/m-p/49174#M6331</link>
    <description>Hi,&lt;BR /&gt;
 &lt;BR /&gt;
I would like to bring to your notice a pecularity in SAS ODS when fetching data from Dataset to excel in Handeling of  Special character "%" :&lt;BR /&gt;
 &lt;BR /&gt;
I tried:&lt;BR /&gt;
&lt;BR /&gt;
data new;&lt;BR /&gt;
input a$ ;&lt;BR /&gt;
cards;&lt;BR /&gt;
as&lt;BR /&gt;
1%1g&lt;BR /&gt;
1231&lt;BR /&gt;
%%&lt;BR /&gt;
qq&lt;BR /&gt;
%&lt;BR /&gt;
00&lt;BR /&gt;
1%1g&lt;BR /&gt;
aa&lt;BR /&gt;
1%&lt;BR /&gt;
ww&lt;BR /&gt;
1%1&lt;BR /&gt;
;&lt;BR /&gt;
&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
 &lt;BR /&gt;
&lt;BR /&gt;
ODS HTML FILE="C:\new.xls" ;&lt;BR /&gt;
      PROC PRINT DATA=new; RUN;&lt;BR /&gt;
ODS HTML close;&lt;BR /&gt;
&lt;BR /&gt;
 &lt;BR /&gt;
But I see the observations: 2, 4 and 8 are not handeled properly.&lt;BR /&gt;
 &lt;BR /&gt;
the excel sheet has the below output&lt;BR /&gt;
&lt;BR /&gt;
The SAS System   &lt;BR /&gt;
    &lt;BR /&gt;
Obs a &lt;BR /&gt;
1 as &lt;BR /&gt;
2 11g &lt;BR /&gt;
3 1231 &lt;BR /&gt;
4 % &lt;BR /&gt;
5 qq &lt;BR /&gt;
6 % &lt;BR /&gt;
7 00 &lt;BR /&gt;
8 11g &lt;BR /&gt;
9 aa &lt;BR /&gt;
10 1% &lt;BR /&gt;
11 ww &lt;BR /&gt;
12 1%1 &lt;BR /&gt;
&lt;BR /&gt;
I hav used SAS 9.1.3</description>
    <pubDate>Fri, 26 Jun 2009 10:25:20 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-06-26T10:25:20Z</dc:date>
    <item>
      <title>ODS from :: Dataset to excel and Handeling of "%"</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-from-Dataset-to-excel-and-Handeling-of-quot-quot/m-p/49174#M6331</link>
      <description>Hi,&lt;BR /&gt;
 &lt;BR /&gt;
I would like to bring to your notice a pecularity in SAS ODS when fetching data from Dataset to excel in Handeling of  Special character "%" :&lt;BR /&gt;
 &lt;BR /&gt;
I tried:&lt;BR /&gt;
&lt;BR /&gt;
data new;&lt;BR /&gt;
input a$ ;&lt;BR /&gt;
cards;&lt;BR /&gt;
as&lt;BR /&gt;
1%1g&lt;BR /&gt;
1231&lt;BR /&gt;
%%&lt;BR /&gt;
qq&lt;BR /&gt;
%&lt;BR /&gt;
00&lt;BR /&gt;
1%1g&lt;BR /&gt;
aa&lt;BR /&gt;
1%&lt;BR /&gt;
ww&lt;BR /&gt;
1%1&lt;BR /&gt;
;&lt;BR /&gt;
&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
 &lt;BR /&gt;
&lt;BR /&gt;
ODS HTML FILE="C:\new.xls" ;&lt;BR /&gt;
      PROC PRINT DATA=new; RUN;&lt;BR /&gt;
ODS HTML close;&lt;BR /&gt;
&lt;BR /&gt;
 &lt;BR /&gt;
But I see the observations: 2, 4 and 8 are not handeled properly.&lt;BR /&gt;
 &lt;BR /&gt;
the excel sheet has the below output&lt;BR /&gt;
&lt;BR /&gt;
The SAS System   &lt;BR /&gt;
    &lt;BR /&gt;
Obs a &lt;BR /&gt;
1 as &lt;BR /&gt;
2 11g &lt;BR /&gt;
3 1231 &lt;BR /&gt;
4 % &lt;BR /&gt;
5 qq &lt;BR /&gt;
6 % &lt;BR /&gt;
7 00 &lt;BR /&gt;
8 11g &lt;BR /&gt;
9 aa &lt;BR /&gt;
10 1% &lt;BR /&gt;
11 ww &lt;BR /&gt;
12 1%1 &lt;BR /&gt;
&lt;BR /&gt;
I hav used SAS 9.1.3</description>
      <pubDate>Fri, 26 Jun 2009 10:25:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-from-Dataset-to-excel-and-Handeling-of-quot-quot/m-p/49174#M6331</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-06-26T10:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: ODS from :: Dataset to excel and Handeling of "%"</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-from-Dataset-to-excel-and-Handeling-of-quot-quot/m-p/49175#M6332</link>
      <description>If you inspect the SAS-generated file (not using Excel), you will see that the data rows are generated correct and complete.  The issue is with how Excel is interpreting those data rows and the imbedded "%" character under specific circumstances.  &lt;BR /&gt;
&lt;BR /&gt;
Investigate techniques for influencing how Excel is to interpret the SAS-generated file.&lt;BR /&gt;
&lt;BR /&gt;
I found a related technical/conference paper at the SAS support &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt; website using the SEARCH facility:&lt;BR /&gt;
&lt;BR /&gt;
Using ODS to Generate Excel Files&lt;BR /&gt;
Chevell Parker&lt;BR /&gt;
&lt;A href="http://support.sas.com/rnd/base/ods/templateFAQ/Excel1.pdf" target="_blank"&gt;http://support.sas.com/rnd/base/ods/templateFAQ/Excel1.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Sat, 27 Jun 2009 17:22:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-from-Dataset-to-excel-and-Handeling-of-quot-quot/m-p/49175#M6332</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-06-27T17:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: ODS from :: Dataset to excel and Handeling of "%"</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-from-Dataset-to-excel-and-Handeling-of-quot-quot/m-p/49176#M6333</link>
      <description>Thanks Scott,&lt;BR /&gt;
for sharing the info you had,&lt;BR /&gt;
&lt;BR /&gt;
I now have the exact explanation for this, which is documented in the SAS Note below. This problem is fixed in SAS 9.2. and I was using 9.1&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/17/862.html" target="_blank"&gt;http://support.sas.com/kb/17/862.html&lt;/A&gt;</description>
      <pubDate>Mon, 29 Jun 2009 09:35:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-from-Dataset-to-excel-and-Handeling-of-quot-quot/m-p/49176#M6333</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-06-29T09:35:06Z</dc:date>
    </item>
  </channel>
</rss>

