<?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: Problem with Proc Import - Work arounds? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-Proc-Import-Work-arounds/m-p/13805#M1702</link>
    <description>Did you try&lt;BR /&gt;
[pre]&lt;BR /&gt;
&lt;BR /&gt;
     MIXED=NO;&lt;BR /&gt;
     USEDATE=NO;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
    <pubDate>Fri, 17 Jun 2011 10:50:36 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2011-06-17T10:50:36Z</dc:date>
    <item>
      <title>Problem with Proc Import - Work arounds?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-Proc-Import-Work-arounds/m-p/13802#M1699</link>
      <description>Hi all.  &lt;BR /&gt;
&lt;BR /&gt;
I am having a horrific issue with Proc Import.  I was using it to read in a rather messy file in version 9.1.3.  It took a bit of cleaning up but the data read in as the correct format and once it came into a sas dataset it could be cleaned a bit into a useful set of data for us.&lt;BR /&gt;
&lt;BR /&gt;
We recently upgraded to version 9.2 and we completely lost our ability to do what we have been doing in 9.1 for over a year.  Now the data reads in as text when before it read in as numeric.  Here is a brief sample of the data coming from excel.  &lt;BR /&gt;
&lt;BR /&gt;
F1            F2                F3                         F4             F5           F6&lt;BR /&gt;
&lt;BR /&gt;
product      region          plan                       Jan-2010   Feb-2010  Mar-2010&lt;BR /&gt;
external&lt;BR /&gt;
plans vs region&lt;BR /&gt;
First quarter 2010&lt;BR /&gt;
&lt;BR /&gt;
COMM      CHI              ARKANSAS           23,485      12,347      17,263&lt;BR /&gt;
COMM      SF               CALIFORNIA          825           734           812&lt;BR /&gt;
COMM      SF               PORTLAND            1,235        2,345        14,235&lt;BR /&gt;
COMM      NY               WESTCHESTER    127,345     112,712    105,399&lt;BR /&gt;
&lt;BR /&gt;
All I really care about is capturing the last four lines.  I don't care about the dates or the other extraneous data in the file including the dates.  I just want a dataset with the data from the last four lines.  When using the proc import statement in 9.1 it worked fine in terms of reading the actual numeric data.  It converted that comma-formatted data in Excel to numeric variables.  Then I could use a little programming logic to clean up the file and get rid of those extraneous rows of data so all that was left were the last four and the data themselves (variables F4-F6) were formatted as numeric varialbes.  &lt;BR /&gt;
&lt;BR /&gt;
But in 9.2 the Proc Import is suddenly making all those variables character.  And I can't seem to convert them back into numerics.  &lt;BR /&gt;
&lt;BR /&gt;
Why did Proc Import change between versions.  Any thoughts on what to do with this so I can once again have numeric variables?&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance.</description>
      <pubDate>Wed, 15 Jun 2011 02:24:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-Proc-Import-Work-arounds/m-p/13802#M1699</guid>
      <dc:creator>DJENS</dc:creator>
      <dc:date>2011-06-15T02:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Proc Import - Work arounds?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-Proc-Import-Work-arounds/m-p/13803#M1700</link>
      <description>I cannot address the differences between 9.1.3 and 9.2 for PROC IMPORT, but given that you are getting character values, have you tried using the COMMA. format with an INPUT function?</description>
      <pubDate>Wed, 15 Jun 2011 04:34:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-Proc-Import-Work-arounds/m-p/13803#M1700</guid>
      <dc:creator>ArtC</dc:creator>
      <dc:date>2011-06-15T04:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Proc Import - Work arounds?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-Proc-Import-Work-arounds/m-p/13804#M1701</link>
      <description>Generally I take the code that PROC IMPORT generates, as it appears in the log, and modify it. Copy the code out of the log, paste into the editor and clean up by changing INFORMATS, which are what are setting character instead of numeric, and the INPUT for the offending variables to remove the $ I expect you'll find.&lt;BR /&gt;
&lt;BR /&gt;
And the keep that program around instead of proc import.</description>
      <pubDate>Wed, 15 Jun 2011 17:24:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-Proc-Import-Work-arounds/m-p/13804#M1701</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2011-06-15T17:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Proc Import - Work arounds?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-Proc-Import-Work-arounds/m-p/13805#M1702</link>
      <description>Did you try&lt;BR /&gt;
[pre]&lt;BR /&gt;
&lt;BR /&gt;
     MIXED=NO;&lt;BR /&gt;
     USEDATE=NO;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
      <pubDate>Fri, 17 Jun 2011 10:50:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-Proc-Import-Work-arounds/m-p/13805#M1702</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-06-17T10:50:36Z</dc:date>
    </item>
  </channel>
</rss>

