<?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 from Excel in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/import-from-Excel/m-p/32068#M7681</link>
    <description>Why does SAS pull in a numeric or general formatted column as character when it is formatted as something else in Excel?  I am just using the general proc import:&lt;BR /&gt;
PROC IMPORT OUT= WORK.EMPLIST&lt;BR /&gt;
 DATAFILE= "S:\emplist.xls" &lt;BR /&gt;
            DBMS=EXCEL REPLACE;&lt;BR /&gt;
     RANGE="EMP$"; &lt;BR /&gt;
     GETNAMES=YES;&lt;BR /&gt;
     MIXED=NO;&lt;BR /&gt;
     SCANTEXT=YES;&lt;BR /&gt;
     USEDATE=YES;&lt;BR /&gt;
     SCANTIME=YES;&lt;BR /&gt;
RUN;</description>
    <pubDate>Thu, 17 Dec 2009 16:56:20 GMT</pubDate>
    <dc:creator>Marilyn</dc:creator>
    <dc:date>2009-12-17T16:56:20Z</dc:date>
    <item>
      <title>import from Excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/import-from-Excel/m-p/32068#M7681</link>
      <description>Why does SAS pull in a numeric or general formatted column as character when it is formatted as something else in Excel?  I am just using the general proc import:&lt;BR /&gt;
PROC IMPORT OUT= WORK.EMPLIST&lt;BR /&gt;
 DATAFILE= "S:\emplist.xls" &lt;BR /&gt;
            DBMS=EXCEL REPLACE;&lt;BR /&gt;
     RANGE="EMP$"; &lt;BR /&gt;
     GETNAMES=YES;&lt;BR /&gt;
     MIXED=NO;&lt;BR /&gt;
     SCANTEXT=YES;&lt;BR /&gt;
     USEDATE=YES;&lt;BR /&gt;
     SCANTIME=YES;&lt;BR /&gt;
RUN;</description>
      <pubDate>Thu, 17 Dec 2009 16:56:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/import-from-Excel/m-p/32068#M7681</guid>
      <dc:creator>Marilyn</dc:creator>
      <dc:date>2009-12-17T16:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: import from Excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/import-from-Excel/m-p/32069#M7682</link>
      <description>You probably need to take this to Tech Support for a definitive answer.  I will hazard a couple of observations.&lt;BR /&gt;
&lt;BR /&gt;
First, the behavior you see will vary significantly by version of SAS.  SAS 9.2 is much more robust about importing Excel than is 9.1.3 than is 8.2.  SAS has made many improvements with 9.2.&lt;BR /&gt;
&lt;BR /&gt;
I think that, for general formatting, SAS looks at all or some of the observations to determine type.  If there is any character in the column, then SAS brings it in as text (BTW, a leading space before a number is text)&lt;BR /&gt;
&lt;BR /&gt;
Doc</description>
      <pubDate>Thu, 17 Dec 2009 20:07:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/import-from-Excel/m-p/32069#M7682</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2009-12-17T20:07:11Z</dc:date>
    </item>
  </channel>
</rss>

