<?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: help xls file -----&amp;gt; SAS data in SAS Health and Life Sciences</title>
    <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/help-xls-file-gt-SAS-data/m-p/2956#M244</link>
    <description>Hi.&lt;BR /&gt;
&lt;BR /&gt;
Sometimes the SAS wizard gets wrong about the variable types when it imports Excel files. This is because it only scans the first EIGHT rows of data, and guesses the type from that, whatever cell formats used in Excel.&lt;BR /&gt;
&lt;BR /&gt;
You can use a PROC IMPORT program instead, with the useful MIXED=YES option to import all mixed-data columns as characted instead of numeric with missing values :&lt;BR /&gt;
PROC IMPORT DATAFILE = "my Excel workbook.xls"&lt;BR /&gt;
OUT = mySASdataset&lt;BR /&gt;
REPLACE&lt;BR /&gt;
DBMS = EXCEL ;&lt;BR /&gt;
SHEET = "Excel Sheet name$" ;&lt;BR /&gt;
GETNAMES = YES ; /* if there are columns names on 1st row */&lt;BR /&gt;
MIXED = YES ;&lt;BR /&gt;
RUN ;&lt;BR /&gt;
&lt;BR /&gt;
Regards.&lt;BR /&gt;
Olivier&lt;BR /&gt;
&lt;BR /&gt;
Additional information here : &lt;A href="http://support.sas.com/techsup/unotes/SN/004/004924.html" target="_blank"&gt;http://support.sas.com/techsup/unotes/SN/004/004924.html&lt;/A&gt;</description>
    <pubDate>Wed, 02 May 2007 10:52:21 GMT</pubDate>
    <dc:creator>Olivier</dc:creator>
    <dc:date>2007-05-02T10:52:21Z</dc:date>
    <item>
      <title>help xls file -----&gt; SAS data</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/help-xls-file-gt-SAS-data/m-p/2954#M242</link>
      <description>I import an excel file into sas, and when in PROC PRINT, the character variable appeared in OUTPUT like missing, how shall I do? Thank you very much!</description>
      <pubDate>Mon, 30 Apr 2007 18:56:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/help-xls-file-gt-SAS-data/m-p/2954#M242</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-04-30T18:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: help xls file -----&gt; SAS data</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/help-xls-file-gt-SAS-data/m-p/2955#M243</link>
      <description>Oh, I forget to point out that I used the import wizard to import the excel file, and then how could I tell the computer some of them are character variable and some are numeric variables? Thank you very much.</description>
      <pubDate>Mon, 30 Apr 2007 19:26:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/help-xls-file-gt-SAS-data/m-p/2955#M243</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-04-30T19:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: help xls file -----&gt; SAS data</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/help-xls-file-gt-SAS-data/m-p/2956#M244</link>
      <description>Hi.&lt;BR /&gt;
&lt;BR /&gt;
Sometimes the SAS wizard gets wrong about the variable types when it imports Excel files. This is because it only scans the first EIGHT rows of data, and guesses the type from that, whatever cell formats used in Excel.&lt;BR /&gt;
&lt;BR /&gt;
You can use a PROC IMPORT program instead, with the useful MIXED=YES option to import all mixed-data columns as characted instead of numeric with missing values :&lt;BR /&gt;
PROC IMPORT DATAFILE = "my Excel workbook.xls"&lt;BR /&gt;
OUT = mySASdataset&lt;BR /&gt;
REPLACE&lt;BR /&gt;
DBMS = EXCEL ;&lt;BR /&gt;
SHEET = "Excel Sheet name$" ;&lt;BR /&gt;
GETNAMES = YES ; /* if there are columns names on 1st row */&lt;BR /&gt;
MIXED = YES ;&lt;BR /&gt;
RUN ;&lt;BR /&gt;
&lt;BR /&gt;
Regards.&lt;BR /&gt;
Olivier&lt;BR /&gt;
&lt;BR /&gt;
Additional information here : &lt;A href="http://support.sas.com/techsup/unotes/SN/004/004924.html" target="_blank"&gt;http://support.sas.com/techsup/unotes/SN/004/004924.html&lt;/A&gt;</description>
      <pubDate>Wed, 02 May 2007 10:52:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/help-xls-file-gt-SAS-data/m-p/2956#M244</guid>
      <dc:creator>Olivier</dc:creator>
      <dc:date>2007-05-02T10:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: help xls file -----&gt; SAS data</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/help-xls-file-gt-SAS-data/m-p/2957#M245</link>
      <description>The MIXED=YES option is a V9 update. If you're still using V8 you might need to change the actual spreadsheet using the Data&amp;gt;Text to Columns from the Excel menus.&lt;BR /&gt;
&lt;BR /&gt;
Cheers,&lt;BR /&gt;
Lawrence</description>
      <pubDate>Fri, 11 May 2007 11:04:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/help-xls-file-gt-SAS-data/m-p/2957#M245</guid>
      <dc:creator>LawrenceHW</dc:creator>
      <dc:date>2007-05-11T11:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: help xls file -----&gt; SAS data</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/help-xls-file-gt-SAS-data/m-p/2958#M246</link>
      <description>Be aware also that the import wizard in Enterprise Guide 4.1 does not use PCFF by default to read Excel spreadsheets.  The result is that cells with very long text may be truncated or split over two rows.  The issue also arises where a carriage return is embedded within the etxt in a cell.&lt;BR /&gt;
&lt;BR /&gt;
There is a support note on this subject.&lt;BR /&gt;
&lt;BR /&gt;
Kind regards&lt;BR /&gt;
&lt;BR /&gt;
David</description>
      <pubDate>Thu, 24 May 2007 07:43:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/help-xls-file-gt-SAS-data/m-p/2958#M246</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-05-24T07:43:39Z</dc:date>
    </item>
  </channel>
</rss>

