<?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 Proc import CSV with Comma in data in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-CSV-with-Comma-in-data/m-p/440622#M282538</link>
    <description>&lt;P&gt;I am using the below code to import a CSV file into SAS data set from a Website. &lt;SPAN&gt;&amp;nbsp;The value for a character variable contains&lt;/SPAN&gt;&amp;nbsp;Comma,Single Quotes and Double Quotes in it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eaxample&amp;nbsp; :&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;Luwin said, “Bran, the children's of the forest have been gone for thousands of years.”&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;When I Imported this into SaS , instead&amp;nbsp; of&amp;nbsp; assigning the value to one variable it creates mlutiple..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;filename dat_input url '&lt;A href="https://XXXXXXXX.csv" target="_blank"&gt;https://XXXXXXXX.csv&lt;/A&gt;';&lt;BR /&gt;proc import datafile=dat_input&lt;BR /&gt;out=Check_XX dbms=CSV replace;&lt;BR /&gt;getnames=yes;&lt;BR /&gt;GUESSINGROWS=10000;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Feb 2018 18:28:30 GMT</pubDate>
    <dc:creator>Melvin_Sas</dc:creator>
    <dc:date>2018-02-27T18:28:30Z</dc:date>
    <item>
      <title>Proc import CSV with Comma in data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-CSV-with-Comma-in-data/m-p/440622#M282538</link>
      <description>&lt;P&gt;I am using the below code to import a CSV file into SAS data set from a Website. &lt;SPAN&gt;&amp;nbsp;The value for a character variable contains&lt;/SPAN&gt;&amp;nbsp;Comma,Single Quotes and Double Quotes in it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eaxample&amp;nbsp; :&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;Luwin said, “Bran, the children's of the forest have been gone for thousands of years.”&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;When I Imported this into SaS , instead&amp;nbsp; of&amp;nbsp; assigning the value to one variable it creates mlutiple..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;filename dat_input url '&lt;A href="https://XXXXXXXX.csv" target="_blank"&gt;https://XXXXXXXX.csv&lt;/A&gt;';&lt;BR /&gt;proc import datafile=dat_input&lt;BR /&gt;out=Check_XX dbms=CSV replace;&lt;BR /&gt;getnames=yes;&lt;BR /&gt;GUESSINGROWS=10000;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 18:28:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-import-CSV-with-Comma-in-data/m-p/440622#M282538</guid>
      <dc:creator>Melvin_Sas</dc:creator>
      <dc:date>2018-02-27T18:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import CSV with Comma in data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-CSV-with-Comma-in-data/m-p/440624#M282539</link>
      <description>&lt;P&gt;That indicates that you do not have a well formed CSV file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You first need to figure out how many issues and what type of clean up you need to do.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would also try setting GUESSINGROWS=MAX and see if you get a slightly better results.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the variable happens to be at the end there are some workarounds you can try, but if it's in the middle its much harder.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 18:39:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-import-CSV-with-Comma-in-data/m-p/440624#M282539</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-27T18:39:13Z</dc:date>
    </item>
  </channel>
</rss>

