<?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: Proc Import - Issue Reading Symbols from Spreadsheet Generated by R in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Import-Issue-Reading-Symbols-from-Spreadsheet-Generated-by/m-p/809326#M319143</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15475"&gt;@andreas_lds&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Usual rant: don't use excel to transfer data, but csv, so that you don't have to rely on proc import.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I didn't see the issue, when importing a xlsx-file created by excel. Maybe the problem is the way R creates the file.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Likely from the choice of R package(s) creating some flavor of HTML output instead of plain text (ASCII characters) for that character. It may look something like a "&amp;gt;" character in display but is not but a similar "standard" so that the symbol renders properly regardless of the font used for display of HTML.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the TRANWRD function in a data step to replace the now revealed "&amp;amp;gt" with simple ASCII "&amp;gt;"&lt;/P&gt;</description>
    <pubDate>Fri, 22 Apr 2022 14:56:13 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2022-04-22T14:56:13Z</dc:date>
    <item>
      <title>Proc Import - Issue Reading Symbols from Spreadsheet Generated by R</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Import-Issue-Reading-Symbols-from-Spreadsheet-Generated-by/m-p/809271#M319111</link>
      <description>&lt;P&gt;I am using proc import to read in an excel sheet generated by someone using R.&amp;nbsp;&amp;nbsp; One of the columns on the spreadsheet contains both text and some basic math symbols.&amp;nbsp; I normally don’t have an issue reading in this type of data using proc import (SAS 9.4), but in this case &amp;nbsp;“&amp;gt;” is being read in as “&amp;amp;gt;”.&amp;nbsp;&amp;nbsp; When I look at the spreadsheet, it shows the “&amp;gt;” symbol.&amp;nbsp;&amp;nbsp; Any suggestions?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 12:13:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Import-Issue-Reading-Symbols-from-Spreadsheet-Generated-by/m-p/809271#M319111</guid>
      <dc:creator>SMcRitchie</dc:creator>
      <dc:date>2022-04-22T12:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import - Issue Reading Symbols from Spreadsheet Generated by R</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Import-Issue-Reading-Symbols-from-Spreadsheet-Generated-by/m-p/809288#M319124</link>
      <description>&lt;P&gt;Usual rant: don't use excel to transfer data, but csv, so that you don't have to rely on proc import.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I didn't see the issue, when importing a xlsx-file created by excel. Maybe the problem is the way R creates the file.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 12:54:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Import-Issue-Reading-Symbols-from-Spreadsheet-Generated-by/m-p/809288#M319124</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-04-22T12:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import - Issue Reading Symbols from Spreadsheet Generated by R</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Import-Issue-Reading-Symbols-from-Spreadsheet-Generated-by/m-p/809326#M319143</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15475"&gt;@andreas_lds&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Usual rant: don't use excel to transfer data, but csv, so that you don't have to rely on proc import.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I didn't see the issue, when importing a xlsx-file created by excel. Maybe the problem is the way R creates the file.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Likely from the choice of R package(s) creating some flavor of HTML output instead of plain text (ASCII characters) for that character. It may look something like a "&amp;gt;" character in display but is not but a similar "standard" so that the symbol renders properly regardless of the font used for display of HTML.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the TRANWRD function in a data step to replace the now revealed "&amp;amp;gt" with simple ASCII "&amp;gt;"&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 14:56:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Import-Issue-Reading-Symbols-from-Spreadsheet-Generated-by/m-p/809326#M319143</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-04-22T14:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import - Issue Reading Symbols from Spreadsheet Generated by R</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Import-Issue-Reading-Symbols-from-Spreadsheet-Generated-by/m-p/809353#M319165</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15475"&gt;@andreas_lds&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;.&amp;nbsp; &amp;nbsp;I asked the person who provided the excel sheet to provide me with a csv file and that solved the problem -- likely because as&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;said, the csv file is &lt;SPAN&gt;ASCII&lt;/SPAN&gt;.&amp;nbsp; I will remember the&amp;nbsp;&lt;SPAN&gt;TRANWRD function in case I encounter an excel sheet where I can't go back and ask the person to re-export.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 16:31:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Import-Issue-Reading-Symbols-from-Spreadsheet-Generated-by/m-p/809353#M319165</guid>
      <dc:creator>SMcRitchie</dc:creator>
      <dc:date>2022-04-22T16:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import - Issue Reading Symbols from Spreadsheet Generated by R</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Import-Issue-Reading-Symbols-from-Spreadsheet-Generated-by/m-p/809360#M319169</link>
      <description>&lt;P&gt;Glad you could resolve this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My particular related peeve is one of my data sources has what should be an apostrophe come in as "&amp;amp;#39;" yes 5 characters. In the same data a different variable instead of apostrophe in what should be "Master's Degree" I can't even type as it includes a Euro sign and the Trademark symbol.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These values apparently come from a drop-down selection list in an application so are pretty consistent. I can write custom informats to fix these as I read these source files frequently.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 16:56:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Import-Issue-Reading-Symbols-from-Spreadsheet-Generated-by/m-p/809360#M319169</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-04-22T16:56:08Z</dc:date>
    </item>
  </channel>
</rss>

