<?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: EXCELXP and Special Characters in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/EXCELXP-and-Special-Characters/m-p/11321#M3073</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We kept getting a table error trying to open the xml file in excel.&amp;nbsp; We figured it was the two extended ascii characters (éó) in the data.&amp;nbsp; If we changed them to a normal e and o the xml file would open just fine. But then I finally figured out if I changed the first line of the XML file to this: &lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="ISO-8859-1"?&amp;gt;&lt;/P&gt;&lt;P&gt;then the XML file opened just fine with the two accented characters in the file.&lt;/P&gt;&lt;P&gt;I tried adding encoding="ISO-8859-1" to the SAS TAGSETS.EXCELXP line but it didn't show up in the first line of the XML output.&lt;/P&gt;&lt;P&gt;So how do we get the encoding to show up in the first line of the XML output?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Jan 2015 16:46:10 GMT</pubDate>
    <dc:creator>Squashman</dc:creator>
    <dc:date>2015-01-12T16:46:10Z</dc:date>
    <item>
      <title>EXCELXP and Special Characters</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/EXCELXP-and-Special-Characters/m-p/11313#M3065</link>
      <description>Hi All:&lt;BR /&gt;
&lt;BR /&gt;
I've got a big problem and I'm just hoping someone can help.&lt;BR /&gt;
&lt;BR /&gt;
In a nutshell - we have some data that we are reporting with EXCELXP and it stopped working.  The data now has special characters (french with accents) and the XML generated has these characters in it (when I look at it with an editor).  Problem is that EXCEL will not read the file and it I try to look at it with a browser (Explorer) it only loads the XML up to the character and stops.&lt;BR /&gt;
&lt;BR /&gt;
Some background - we recently changed from 8.2 to 9.1 on our mainframe (z/OS) where we read data and download SAS data.  I believe that the encoding or translate tables have changed in the new version.  Problem is - we don't know what they were in 8.2 because the options for ENCODE= or LOCALE= are defaulted and do not display any values.&lt;BR /&gt;
&lt;BR /&gt;
I think that previously the special characters were translated to something that EXCELXP could handle and they are not now.  I would like to use the special characters since they are actually correct now (if I can).  It seems that the download is correct but EXCELXP can't handle the new characters.&lt;BR /&gt;
&lt;BR /&gt;
In 9.1 we are using the 'open_ed-1047' encoding and the local is 'en_US' (these are the 'new' defaults).&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance.</description>
      <pubDate>Wed, 16 Feb 2011 15:25:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/EXCELXP-and-Special-Characters/m-p/11313#M3065</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2011-02-16T15:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: EXCELXP and Special Characters</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/EXCELXP-and-Special-Characters/m-p/11314#M3066</link>
      <description>Hi:&lt;BR /&gt;
  My Language Control settings are:&lt;BR /&gt;
[pre]&lt;BR /&gt;
58   proc options GROUP=LANGUAGECONTROL;&lt;BR /&gt;
59   run;&lt;BR /&gt;
                                                     &lt;BR /&gt;
    SAS (r) Proprietary Software Release 9.2  TS2M3&lt;BR /&gt;
                                        &lt;BR /&gt;
 DATESTYLE=MDY     Identify sequence of month, day and year when ANYDATE informat data is&lt;BR /&gt;
                   ambiguous&lt;BR /&gt;
 DFLANG=ENGLISH    Language for EURDF date/time formats and informats&lt;BR /&gt;
 NOLOCALELANGCHG   Do not change the language of SAS message text in ODS output when the LOCALE&lt;BR /&gt;
                   option is specified&lt;BR /&gt;
 PAPERSIZE=LETTER  Size of paper to print on&lt;BR /&gt;
 RSASIOTRANSERROR  Display a transcoding error when illegal data values for a remote application&lt;BR /&gt;
 TRANTAB=(lat1lat1,lat1lat1,wlt1_ucs,wlt1_lcs,wlt1_ccl,,,)&lt;BR /&gt;
                   Names of translate tables&lt;BR /&gt;
 NODBCS            Do not process double byte character sets&lt;BR /&gt;
 DBCSLANG=NONE     Specifies the double-byte character set (DBCS) language to use&lt;BR /&gt;
 DBCSTYPE=NONE     Specifies a double-byte character set (DBCS) encoding method&lt;BR /&gt;
 ENCODING=WLATIN1  Specifies default encoding for internal processing of data.&lt;BR /&gt;
 LOCALE=EN_US      Specifies the current locale for the SAS session.&lt;BR /&gt;
 NONLSCOMPATMODE   Uses the user specified encoding to process character data&lt;BR /&gt;
   &lt;BR /&gt;
[/pre]&lt;BR /&gt;
                         &lt;BR /&gt;
And with the program below, I have no problem opening the output created with TAGSETS.EXCELXP, using Excel 2010.&lt;BR /&gt;
 &lt;BR /&gt;
Have you looked at this doc on National Language Support:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/nlsref/61893/HTML/default/viewer.htm#nls-overview.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/nlsref/61893/HTML/default/viewer.htm#nls-overview.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
I don't think the problem is with TAGSETS.EXCELXP, you might want to open a track with Tech Support on this issue to see if they can help you get to the right settings.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
data phrases;&lt;BR /&gt;
  length with_acc $12 means_with $20 no_acc $12 means_no $20;&lt;BR /&gt;
  infile datalines dlm=',' dsd;&lt;BR /&gt;
  input with_acc $ means_with $ no_acc $ means_no $;&lt;BR /&gt;
return;&lt;BR /&gt;
datalines;&lt;BR /&gt;
"çà et là", "hither and thither", "ca et la","it and the"&lt;BR /&gt;
"où","where","ou","or"&lt;BR /&gt;
"dès","since","des","some"&lt;BR /&gt;
"ès","in","es","are"&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
                   &lt;BR /&gt;
ods listing;&lt;BR /&gt;
proc options GROUP=LANGUAGECONTROL;&lt;BR /&gt;
run; &lt;BR /&gt;
ods listing close;&lt;BR /&gt;
title; footnote;&lt;BR /&gt;
                  &lt;BR /&gt;
ods html file='c:\temp\output\grave_accent.html' style=sasweb;&lt;BR /&gt;
ods tagsets.excelxp file='c:\temp\output\grave_accent.xls' style=sasweb;&lt;BR /&gt;
proc print data=phrases;&lt;BR /&gt;
run;&lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Wed, 16 Feb 2011 16:13:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/EXCELXP-and-Special-Characters/m-p/11314#M3066</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-02-16T16:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: EXCELXP and Special Characters</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/EXCELXP-and-Special-Characters/m-p/11315#M3067</link>
      <description>Cynthia:&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the prompt answer - but it looks like the problem is deeper that I first thought.&lt;BR /&gt;
&lt;BR /&gt;
My problem seems to occur on record 43,449 of my input file - this being the first record that has french characters. However - if I exclude the first 40,000 records from the file the Excel file will load without errors!&lt;BR /&gt;
&lt;BR /&gt;
Just for fun I have downloaded the latest tagset and I am using that.&lt;BR /&gt;
&lt;BR /&gt;
I can generate a valid XML file with my source data is reduced (ie: there are less records), but whe I run my full dataset into ExcelXP the results are unusable.  I'm stumped - it looks like there is something in my source data that is causing the tagset to hiccup.  &lt;BR /&gt;
&lt;BR /&gt;
I am running tests with various subsets of my data right now to see if I can localize where the error occurs.  It's too bad that we only get a useless cryptic error when the table fails to load in Excel.&lt;BR /&gt;
&lt;BR /&gt;
I will keep you up to date if I can find out what is causing this.</description>
      <pubDate>Wed, 16 Feb 2011 18:24:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/EXCELXP-and-Special-Characters/m-p/11315#M3067</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2011-02-16T18:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: EXCELXP and Special Characters</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/EXCELXP-and-Special-Characters/m-p/11316#M3068</link>
      <description>Hi:&lt;BR /&gt;
  I really recommend working with Tech Support on this issue. They may have some debugging tips and ways to get at the cryptic log file that Excel creates when a table fails to load.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Wed, 16 Feb 2011 18:40:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/EXCELXP-and-Special-Characters/m-p/11316#M3068</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-02-16T18:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: EXCELXP and Special Characters</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/EXCELXP-and-Special-Characters/m-p/11317#M3069</link>
      <description>Cynthia:&lt;BR /&gt;
&lt;BR /&gt;
Already have a track open.&lt;BR /&gt;
&lt;BR /&gt;
Thanks again.&lt;BR /&gt;
&lt;BR /&gt;
I'll let you know what the 'fix' is.</description>
      <pubDate>Wed, 16 Feb 2011 19:15:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/EXCELXP-and-Special-Characters/m-p/11317#M3069</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2011-02-16T19:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: EXCELXP and Special Characters</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/EXCELXP-and-Special-Characters/m-p/11318#M3070</link>
      <description>Hi.&lt;BR /&gt;
I also meet this problem ,but it is when copy tables from DB2 to SAS.&lt;BR /&gt;
This problem is often occurred because  variables(i.e. columns) have some problem such as too long or zero length. &lt;BR /&gt;
&lt;BR /&gt;
Do you try to only keep variables you need , drop else variables you do not need.&lt;BR /&gt;
Or just keep only one good variable to see whether it is success to import datasets.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
      <pubDate>Mon, 21 Feb 2011 10:26:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/EXCELXP-and-Special-Characters/m-p/11318#M3070</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-02-21T10:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: EXCELXP and Special Characters</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/EXCELXP-and-Special-Characters/m-p/11319#M3071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OS2Rules,&lt;/P&gt;&lt;P&gt;Did you ever get this resolved?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2015 18:11:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/EXCELXP-and-Special-Characters/m-p/11319#M3071</guid>
      <dc:creator>Squashman</dc:creator>
      <dc:date>2015-01-09T18:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: EXCELXP and Special Characters</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/EXCELXP-and-Special-Characters/m-p/11320#M3072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We must have but for the life of me I can't figure what we did....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I remember (or figure it out again), I'll let you know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2015 19:46:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/EXCELXP-and-Special-Characters/m-p/11320#M3072</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2015-01-09T19:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: EXCELXP and Special Characters</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/EXCELXP-and-Special-Characters/m-p/11321#M3073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We kept getting a table error trying to open the xml file in excel.&amp;nbsp; We figured it was the two extended ascii characters (éó) in the data.&amp;nbsp; If we changed them to a normal e and o the xml file would open just fine. But then I finally figured out if I changed the first line of the XML file to this: &lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="ISO-8859-1"?&amp;gt;&lt;/P&gt;&lt;P&gt;then the XML file opened just fine with the two accented characters in the file.&lt;/P&gt;&lt;P&gt;I tried adding encoding="ISO-8859-1" to the SAS TAGSETS.EXCELXP line but it didn't show up in the first line of the XML output.&lt;/P&gt;&lt;P&gt;So how do we get the encoding to show up in the first line of the XML output?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2015 16:46:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/EXCELXP-and-Special-Characters/m-p/11321#M3073</guid>
      <dc:creator>Squashman</dc:creator>
      <dc:date>2015-01-12T16:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: EXCELXP and Special Characters</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/EXCELXP-and-Special-Characters/m-p/11322#M3074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now we can't get the TRADEMARK symbol to display in Excel.&amp;nbsp; The XML file opens up just fine but it won't display the trademark symbol in excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I change the first line of the XML file in a text editor to: &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;&amp;lt;?xml version="1.0" encoding="ISO-8859-1"?&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;It then displays the trademark when opened with Excel.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 21:04:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/EXCELXP-and-Special-Characters/m-p/11322#M3074</guid>
      <dc:creator>Squashman</dc:creator>
      <dc:date>2015-01-26T21:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: EXCELXP and Special Characters</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/EXCELXP-and-Special-Characters/m-p/254141#M15344</link>
      <description>&lt;P&gt;Have the same issue that adding the encoding="ISO-8859-1" &amp;nbsp;with ODS TAGSETS EXCELXP (SAS z/OS 9.1.3) will NOT&amp;nbsp;&lt;/P&gt;&lt;P&gt;create the Excel with the encoding added on the first XML line. &amp;nbsp;The file looks weird then.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adding the encoding on the first line the file gets open by Excel. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to add the &amp;nbsp;encoding attribute to the first XML line?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 12:42:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/EXCELXP-and-Special-Characters/m-p/254141#M15344</guid>
      <dc:creator>kchan</dc:creator>
      <dc:date>2016-03-03T12:42:28Z</dc:date>
    </item>
  </channel>
</rss>

