<?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 Proc Import(Excel file) with fixed column formats in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-Excel-file-with-fixed-column-formats/m-p/21787#M4677</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; No idea on this.May be i will check and see if i can help .:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jun 2011 13:06:44 GMT</pubDate>
    <dc:creator>manojinpec</dc:creator>
    <dc:date>2011-06-28T13:06:44Z</dc:date>
    <item>
      <title>Proc Import(Excel file) with fixed column formats</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-Excel-file-with-fixed-column-formats/m-p/21785#M4675</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 am importing data from an excel file. I see that whenever SAS sees that a column was left blank even if it was numeric, it treats it like a character variable. This causes problems when I am inserting the excel file records into my master SAS file which has some numeric columns that are imported as character in excel imported data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way I can force lengths and formats for the Columns in excel file to be imported? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;currently used script: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc import&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; datafile="C:\Data\myDATA.xls"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dbms=XLS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; out=test&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; guessingrows=10000;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 19:30:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-Excel-file-with-fixed-column-formats/m-p/21785#M4675</guid>
      <dc:creator>rockerd</dc:creator>
      <dc:date>2011-06-27T19:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import(Excel file) with fixed column formats</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-Excel-file-with-fixed-column-formats/m-p/21786#M4676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not as far as I know...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The guessingrows option is also invalid in proc import with Excel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A couple of things you might look into:&lt;/P&gt;&lt;P&gt;1) converting excel file to CSV and doing a proc import. Modify the SAS generated code to make sure your formats are the way you want them to be.&lt;/P&gt;&lt;P&gt;2) Read file with DDE&lt;/P&gt;&lt;P&gt;3) Can try the Force option in proc append, but not sure how that would work. If all the variable that were mismatched are missing in the new set it could be fine, but if variables that are not missing are in diff format you would lose information.&lt;/P&gt;&lt;P&gt;4) If all files are the same, try the option mixed=yes on all files to see if the imports are consistent. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 21:08:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-Excel-file-with-fixed-column-formats/m-p/21786#M4676</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2011-06-27T21:08:00Z</dc:date>
    </item>
    <item>
      <title>Proc Import(Excel file) with fixed column formats</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-Excel-file-with-fixed-column-formats/m-p/21787#M4677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; No idea on this.May be i will check and see if i can help .:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 13:06:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-Excel-file-with-fixed-column-formats/m-p/21787#M4677</guid>
      <dc:creator>manojinpec</dc:creator>
      <dc:date>2011-06-28T13:06:44Z</dc:date>
    </item>
  </channel>
</rss>

