<?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 Reading xls file having single quote using proc import in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Reading-xls-file-having-single-quote-using-proc-import/m-p/187049#M47487</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All&lt;/P&gt;&lt;P&gt;I have xls file and one of column has value like this 'some text1','some text2','some text3' (with quotes)&amp;nbsp; ,While reading this xls file using proc import SAS&amp;nbsp; misses first " ' " from the value in dataset .and I get value in dataset as&lt;/P&gt;&lt;P&gt;some text1','some text2','some text3' (note 1st quote is missing)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone let me know reason or fix for this ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Oct 2014 14:15:21 GMT</pubDate>
    <dc:creator>ucvikas</dc:creator>
    <dc:date>2014-10-16T14:15:21Z</dc:date>
    <item>
      <title>Reading xls file having single quote using proc import</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reading-xls-file-having-single-quote-using-proc-import/m-p/187049#M47487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All&lt;/P&gt;&lt;P&gt;I have xls file and one of column has value like this 'some text1','some text2','some text3' (with quotes)&amp;nbsp; ,While reading this xls file using proc import SAS&amp;nbsp; misses first " ' " from the value in dataset .and I get value in dataset as&lt;/P&gt;&lt;P&gt;some text1','some text2','some text3' (note 1st quote is missing)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone let me know reason or fix for this ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 14:15:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reading-xls-file-having-single-quote-using-proc-import/m-p/187049#M47487</guid>
      <dc:creator>ucvikas</dc:creator>
      <dc:date>2014-10-16T14:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: Reading xls file having single quote using proc import</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reading-xls-file-having-single-quote-using-proc-import/m-p/187050#M47488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please supply the code you are using and an example file as it appears you are talking about two different things.&amp;nbsp; What I mean by this is that an Excel XLS file would not be stored as you state above (unless of course the quotes are in the cells themselves), so I am assuming that you are talking about a CSV (comma separated variable) file, which Excel can open, but is not a native Excel file format. &lt;/P&gt;&lt;P&gt;So what is your code for importing this, do you want all the text in one variable?&amp;nbsp; Maybe try:&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; infile "You_data.csv" dsd missover dlm='¬';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input buffer $varying256.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 14:22:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reading-xls-file-having-single-quote-using-proc-import/m-p/187050#M47488</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-10-16T14:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Reading xls file having single quote using proc import</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reading-xls-file-having-single-quote-using-proc-import/m-p/187051#M47489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use code something like this&lt;/P&gt;&lt;P&gt;proc import datafile = "location_of_file/test_file.xls"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; out&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;nbsp; test_file replace dbms=xls;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sheet&amp;nbsp;&amp;nbsp;&amp;nbsp; = "sheet1";&lt;/P&gt;&lt;P&gt;&amp;nbsp; getnames = yes;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attached is test file (see original post) and you will notice that first single quote is missed once file is read with the code I supplied;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2014 15:08:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reading-xls-file-having-single-quote-using-proc-import/m-p/187051#M47489</guid>
      <dc:creator>ucvikas</dc:creator>
      <dc:date>2014-10-20T15:08:05Z</dc:date>
    </item>
  </channel>
</rss>

