<?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: CSV file import with error in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/CSV-file-import-with-error/m-p/181385#M46196</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know what additional problems you might confront but, the sample you posted, appears to be tab delimited .. not csv.&lt;/P&gt;&lt;P&gt;Have you tried it with DBMS-tab&amp;nbsp;&amp;nbsp; ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Dec 2013 14:26:49 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2013-12-24T14:26:49Z</dc:date>
    <item>
      <title>CSV file import with error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/CSV-file-import-with-error/m-p/181380#M46191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Dear All,&lt;/P&gt;&lt;P&gt;I've written 2 patterns of code.(difference is the "*" before "getnames=no")&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;P&gt;proc import&lt;/P&gt;&lt;P&gt;datafile="&amp;amp;importpath\_20131224CMCVIPReview\datarequest.csv"&lt;/P&gt;&lt;P&gt;out=_20131224CMCVIPReview&lt;/P&gt;&lt;P&gt;dbms=csv&lt;/P&gt;&lt;P&gt;replace;&lt;/P&gt;&lt;P&gt;*getnames=no;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;2.&lt;/P&gt;&lt;P&gt;proc import&lt;/P&gt;&lt;P&gt;datafile="&amp;amp;importpath\_20131224CMCVIPReview\datarequest.csv"&lt;/P&gt;&lt;P&gt;out=_20131224CMCVIPReview&lt;/P&gt;&lt;P&gt;dbms=csv&lt;/P&gt;&lt;P&gt;replace;&lt;/P&gt;&lt;P&gt;getnames=no;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result for code 1 is all value within the CSV is "&amp;lt; Value not readable&amp;gt;"&lt;/P&gt;&lt;P&gt;The result for code 2 is the correct imports except the row 1 value and the column names are var1,etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone give a hand?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dawn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Dec 2013 05:38:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/CSV-file-import-with-error/m-p/181380#M46191</guid>
      <dc:creator>bbb_NG</dc:creator>
      <dc:date>2013-12-24T05:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file import with error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/CSV-file-import-with-error/m-p/181381#M46192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post the first couple of lines of the csv file you are trying to import?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Dec 2013 05:43:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/CSV-file-import-with-error/m-p/181381#M46192</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2013-12-24T05:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file import with error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/CSV-file-import-with-error/m-p/181382#M46193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="ResultOfCode1.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/4671_ResultOfCode1.png" width="450" /&gt;&lt;IMG alt="ResultOfCode2.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/4672_ResultOfCode2.png" width="450" /&gt;Arthur,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your attention.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For better understanding I attached the 2 outputs of result for your reference.&lt;/P&gt;&lt;P&gt;The first is the output of code 1,the second is the output of code 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dawn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Dec 2013 06:03:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/CSV-file-import-with-error/m-p/181382#M46193</guid>
      <dc:creator>bbb_NG</dc:creator>
      <dc:date>2013-12-24T06:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file import with error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/CSV-file-import-with-error/m-p/181383#M46194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Arthur,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is some records from CSV file,which is "saved as" from a excel file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="WIDTH: 576px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="18" width="72"&gt;City&lt;/TD&gt;&lt;TD width="72"&gt;Branch&lt;/TD&gt;&lt;TD width="72"&gt;CustName&lt;/TD&gt;&lt;TD width="72"&gt;Hub&lt;/TD&gt;&lt;TD width="72"&gt;Falg&lt;/TD&gt;&lt;TD width="72"&gt;UpgradeDate&lt;/TD&gt;&lt;TD width="72"&gt;UpgradeDate_Format&lt;/TD&gt;&lt;TD width="72"&gt;Hub_Format&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="18"&gt;上海&lt;/TD&gt;&lt;TD&gt;GUB&lt;/TD&gt;&lt;TD&gt;YICK POON MING &lt;/TD&gt;&lt;TD align="right"&gt;5.1&lt;/TD&gt;&lt;TD&gt;现有 VIP&lt;/TD&gt;&lt;TD class="xl63"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;2013/6/1&lt;/TD&gt;&lt;TD&gt;CN06131&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="18"&gt;上海&lt;/TD&gt;&lt;TD&gt;GUB&lt;/TD&gt;&lt;TD&gt;WONG CHUI YIN&lt;/TD&gt;&lt;TD align="right"&gt;5.1208&lt;/TD&gt;&lt;TD&gt;现有 VIP&lt;/TD&gt;&lt;TD class="xl63"&gt;###&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;2013/6/1&lt;/TD&gt;&lt;TD&gt;CNHA07345&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Dec 2013 07:39:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/CSV-file-import-with-error/m-p/181383#M46194</guid>
      <dc:creator>bbb_NG</dc:creator>
      <dc:date>2013-12-24T07:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file import with error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/CSV-file-import-with-error/m-p/181384#M46195</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;I'd like to suggest you to read the csv file in the datastep infile and input. In my experience, I have encountered various issues whilst using Proc import. Presumably, datastep is perhaps more efficient too. Or, there is a possibility of saving your csv file as an xls file and use the import wizard. However, I would assume the dataset is much too large to fit in the xls file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Datastep option is perhaps better in my opinion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Dec 2013 11:47:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/CSV-file-import-with-error/m-p/181384#M46195</guid>
      <dc:creator>NaveenSrinivasan</dc:creator>
      <dc:date>2013-12-24T11:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file import with error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/CSV-file-import-with-error/m-p/181385#M46196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know what additional problems you might confront but, the sample you posted, appears to be tab delimited .. not csv.&lt;/P&gt;&lt;P&gt;Have you tried it with DBMS-tab&amp;nbsp;&amp;nbsp; ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Dec 2013 14:26:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/CSV-file-import-with-error/m-p/181385#M46196</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2013-12-24T14:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file import with error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/CSV-file-import-with-error/m-p/181386#M46197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like you might be having an encoding issue with the characters that are in the text file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Dec 2013 18:47:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/CSV-file-import-with-error/m-p/181386#M46197</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-12-24T18:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file import with error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/CSV-file-import-with-error/m-p/181387#M46198</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;&lt;/P&gt;&lt;P&gt;Thanks for taking a look into my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try datasetp with the suggestion of Naveen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your knid help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dawn&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Dec 2013 03:11:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/CSV-file-import-with-error/m-p/181387#M46198</guid>
      <dc:creator>bbb_NG</dc:creator>
      <dc:date>2013-12-25T03:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file import with error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/CSV-file-import-with-error/m-p/181388#M46199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am seeing the special Eastern language characters once being indicated to be solved by a DBCS approach.&lt;/P&gt;&lt;P&gt;Web/Html and Microsoft office are using utf-8 these days. Most systems however are using latin-1 (western) single byte.&lt;/P&gt;&lt;P&gt;This is what Tom already mentioned as being an encoding problem. You cannot read all chars of utf-8 in a latin-1 only system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When your SAS system is running latin-1&amp;nbsp; change it to run utf-8 (different menu lay-out) and import again.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Be aware of the bom (byte order mark) can be added to files editted by a SAS utf-8 system possible making them unusable for programs not aware of utf-8 encoding.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Dec 2013 11:59:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/CSV-file-import-with-error/m-p/181388#M46199</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2013-12-26T11:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file import with error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/CSV-file-import-with-error/m-p/181389#M46200</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;If your original data is stored in a XLSX file then you can use the new %xlsx2sas macro to transform it to SAS data set without going through CSV format.&lt;/P&gt;&lt;P&gt;The %xlsx2sas macro supports NLS encoding (UTF-8).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Demo download &amp;amp; free trial at: &lt;A href="http://www.bixforsas.com" target="_blank"&gt;www.bixforsas.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Dec 2013 17:03:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/CSV-file-import-with-error/m-p/181389#M46200</guid>
      <dc:creator>GadyKotler</dc:creator>
      <dc:date>2013-12-26T17:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file import with error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/CSV-file-import-with-error/m-p/181390#M46201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if the following works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;proc import&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;datafile="&amp;amp;importpath\_20131224CMCVIPReview\datarequest.csv"&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;out=_20131224CMCVIPReview&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;dbms=csv&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;replace;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;getnames=yes;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;datarow=2;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;run;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;OR&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;proc import&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;datafile="&amp;amp;importpath\_20131224CMCVIPReview\datarequest.csv"&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;out=_20131224CMCVIPReview&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;dbms=dlm&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;replace;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;delimiter=",";&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;getnames=yes;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;datarow=2;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 00:08:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/CSV-file-import-with-error/m-p/181390#M46201</guid>
      <dc:creator>Trey</dc:creator>
      <dc:date>2014-01-29T00:08:03Z</dc:date>
    </item>
  </channel>
</rss>

