<?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: PROC IMPORT EXCEL FILE in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/PROC-IMPORT-EXCEL-FILE/m-p/543034#M7637</link>
    <description>&lt;P&gt;Thank you for your suggestions.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Mar 2019 06:58:29 GMT</pubDate>
    <dc:creator>BalajiBollu</dc:creator>
    <dc:date>2019-03-14T06:58:29Z</dc:date>
    <item>
      <title>PROC IMPORT EXCEL FILE</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-IMPORT-EXCEL-FILE/m-p/542712#M7601</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have an excel file in which one of the columns value starts at row 8 (Row 1 to 7 is blank). It has a number (0.345) there. But when I use PROC IMPORT to import that excel file it is reading that column as a Character. How can i ask PROC IMPORT to read it as Numeric?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2019 10:33:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-IMPORT-EXCEL-FILE/m-p/542712#M7601</guid>
      <dc:creator>BalajiBollu</dc:creator>
      <dc:date>2019-03-13T10:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT EXCEL FILE</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-IMPORT-EXCEL-FILE/m-p/542714#M7602</link>
      <description>&lt;P&gt;Excel is a bad data source (no structure).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc import is a guessing procedure, it guesses what your data should be.&lt;/P&gt;
&lt;P&gt;Combine the above and you will get garbage 80% of the time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The best suggestion, as always, is to convert your data to a better format plain text (i.e. open, cross platform) such as CSV (which Excel can save to), XML, Json.&amp;nbsp; Then with that nice datasource, write a datastep import program which reads the plain text file using formats, lengths, informats, which you - the person who knows the data best (with your data import agreement) - supplies so the data is read correctly and repeatable each time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suspect however that none of the above is what will happen, so you can either fix it after proc import, try to force it by adding a row into Excel, or some other bad trick to get round the situation without fixing it.&amp;nbsp; But you will find many many topics on here about this very thing and its due to Excel+Proc Import = bad.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2019 10:42:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-IMPORT-EXCEL-FILE/m-p/542714#M7602</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2019-03-13T10:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT EXCEL FILE</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-IMPORT-EXCEL-FILE/m-p/542840#M7615</link>
      <description>&lt;P&gt;You can use Proc Import with the CSV file. Set a large value for the GUESSINGROWS value (NOT available with Excel files)&amp;nbsp;and you can specify the start of the data using the DATAROW statement (also not available for Excel).&lt;/P&gt;
&lt;P&gt;The proc will generate data step code that you can copy from the log, save and modify if any of the results need to set to match your needs. Likely things like account numbers, phone numbers, Zip codes&amp;nbsp;or other identifiers may try to be numeric but likely should be character. That is easy to fix with the data step by changing the informat or setting attributes prior to the Input statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I usually take to time to add variable Labels and initial data quality check code to the data step.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2019 15:46:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-IMPORT-EXCEL-FILE/m-p/542840#M7615</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-03-13T15:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT EXCEL FILE</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-IMPORT-EXCEL-FILE/m-p/543034#M7637</link>
      <description>&lt;P&gt;Thank you for your suggestions.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2019 06:58:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-IMPORT-EXCEL-FILE/m-p/543034#M7637</guid>
      <dc:creator>BalajiBollu</dc:creator>
      <dc:date>2019-03-14T06:58:29Z</dc:date>
    </item>
  </channel>
</rss>

