<?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 CSV files with spaces in column in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Reading-CSV-files-with-spaces-in-column/m-p/42286#M8680</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;While reading the csv file which are having the spaces i am not able to read properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Example my csv file has following column&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;abc /nw&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;def /sw &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i am trying to read using the dlm=',' option i am getting the column as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;abc&lt;/P&gt;&lt;P&gt;def&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please assist what can be done.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Aug 2011 06:33:31 GMT</pubDate>
    <dc:creator>manojinpec</dc:creator>
    <dc:date>2011-08-04T06:33:31Z</dc:date>
    <item>
      <title>Reading CSV files with spaces in column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-CSV-files-with-spaces-in-column/m-p/42286#M8680</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;While reading the csv file which are having the spaces i am not able to read properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Example my csv file has following column&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;abc /nw&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;def /sw &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i am trying to read using the dlm=',' option i am getting the column as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;abc&lt;/P&gt;&lt;P&gt;def&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please assist what can be done.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 06:33:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-CSV-files-with-spaces-in-column/m-p/42286#M8680</guid>
      <dc:creator>manojinpec</dc:creator>
      <dc:date>2011-08-04T06:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Reading CSV files with spaces in column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-CSV-files-with-spaces-in-column/m-p/42287#M8681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've ran a simple test using the data you mentioned and it seems to work fine.&amp;nbsp; Can you post the rest of the lines from your input file, and the code you're using (altered to hide confidential data if necessary)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;format a $10.;&lt;/P&gt;&lt;P&gt;format b $10.;&lt;/P&gt;&lt;P&gt;infile '~/test.csv' dlm=',';&lt;/P&gt;&lt;P&gt;input a $ b $;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample input file is attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 08:54:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-CSV-files-with-spaces-in-column/m-p/42287#M8681</guid>
      <dc:creator>DF</dc:creator>
      <dc:date>2011-08-04T08:54:59Z</dc:date>
    </item>
  </channel>
</rss>

