<?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 IMPORT PROBLEM in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/IMPORT-PROBLEM/m-p/85362#M24415</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi when i import a large file to SAS it replaces some of the variables with 1,2 , 3, etc. upto 9. I would like the original vaues ie: 1222, 6335, 3245 to remain as they are.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I ensure the SAS does not alter my variables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The current command I am using is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC IMPORT OUT= WORK.accounting&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;DATAFILE= "C:\Users\253507F\Desktop\accvariables.csv"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;DBMS=CSV REPLACE;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GETNAMES=YES;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATAROW=2; RUN; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 17 Jun 2012 08:51:13 GMT</pubDate>
    <dc:creator>ncross</dc:creator>
    <dc:date>2012-06-17T08:51:13Z</dc:date>
    <item>
      <title>IMPORT PROBLEM</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/IMPORT-PROBLEM/m-p/85362#M24415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi when i import a large file to SAS it replaces some of the variables with 1,2 , 3, etc. upto 9. I would like the original vaues ie: 1222, 6335, 3245 to remain as they are.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I ensure the SAS does not alter my variables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The current command I am using is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC IMPORT OUT= WORK.accounting&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;DATAFILE= "C:\Users\253507F\Desktop\accvariables.csv"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;DBMS=CSV REPLACE;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GETNAMES=YES;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATAROW=2; RUN; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jun 2012 08:51:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/IMPORT-PROBLEM/m-p/85362#M24415</guid>
      <dc:creator>ncross</dc:creator>
      <dc:date>2012-06-17T08:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: IMPORT PROBLEM</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/IMPORT-PROBLEM/m-p/85363#M24416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have experienced a similar problem when uploading CSV files! Very interested to hear problems to solve for this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jun 2012 09:20:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/IMPORT-PROBLEM/m-p/85363#M24416</guid>
      <dc:creator>spraynardz90</dc:creator>
      <dc:date>2012-06-17T09:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: IMPORT PROBLEM</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/IMPORT-PROBLEM/m-p/85364#M24417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't understand what you mean ?&lt;/P&gt;&lt;P&gt;I notice you used DBMS=CSV ,that means SAS will take comma as a delimiter , and data 1222, 6335, 3245 contains comma , Maybe SAS take it as a delimiter .&lt;/P&gt;&lt;P&gt;So try to use DBMS=dlm ;&amp;nbsp;&amp;nbsp; delimiter='your-delimiter' ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 02:09:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/IMPORT-PROBLEM/m-p/85364#M24417</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-06-18T02:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: IMPORT PROBLEM</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/IMPORT-PROBLEM/m-p/85365#M24418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="209"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" width="99"&gt;ratio&lt;/TD&gt;&lt;TD class="xl66" width="110"&gt;ratio after import&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;0.000018062&lt;/TD&gt;&lt;TD class="xl65"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;-0.000015875&lt;/TD&gt;&lt;TD class="xl65"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;0.000004338&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;-0.000132&lt;/TD&gt;&lt;TD&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;0.000316&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;-0.000005684&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;-0.000173&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;-0.00006028&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I mean. The actual values are translated into digits between 1-9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used DBMS=dlm ;&amp;nbsp;&amp;nbsp; delimiter='your-delimiter' ; and this does not provide me with my table. Rather than having 18 rows by 23 columns, my table 2 columns with many rows via your method.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 03:06:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/IMPORT-PROBLEM/m-p/85365#M24418</guid>
      <dc:creator>ncross</dc:creator>
      <dc:date>2012-06-18T03:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: IMPORT PROBLEM</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/IMPORT-PROBLEM/m-p/85366#M24419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is hard to say something.&lt;/P&gt;&lt;P&gt;Can you post some sample file of yours . I can test it whether it is right.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 05:40:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/IMPORT-PROBLEM/m-p/85366#M24419</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-06-18T05:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: IMPORT PROBLEM</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/IMPORT-PROBLEM/m-p/85367#M24420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you run your example IMPORT code there should be datastep code in the log. If you would provide that we can probably provide better help. I suspect that the culprit will turn out to be the default GUESSINGROWS value of 20. If the first 20 rows have values that are integers the import procedure will assume the others are.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try adding guesssingrows=32767 (this is the largest number of rows SAS will examine for CSV to determine range and types of values)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 14:48:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/IMPORT-PROBLEM/m-p/85367#M24420</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2012-06-18T14:48:42Z</dc:date>
    </item>
  </channel>
</rss>

