<?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 Starting at row 7 when dbms=ExcelCS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Import-Starting-at-row-7-when-dbms-ExcelCS/m-p/364632#M86501</link>
    <description>&lt;P&gt;As the error says, datarows is not supported for Excel. You could try specifying a range to import such as Range="sheetname$a6:z200"&amp;nbsp;but you're not going to get variable names from row 6 and would have to use Proc datasets or similar to assign names you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or save the file as CSV and remove the first 5 rows before importing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc import expects "clean" data, column headings if any in the first row and then data. If the data is clean, a common issue with Excel, then you have to do more work. Or avoid using Excel files for data interchange if possible.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Jun 2017 15:59:45 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-06-06T15:59:45Z</dc:date>
    <item>
      <title>Proc Import Starting at row 7 when dbms=ExcelCS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Import-Starting-at-row-7-when-dbms-ExcelCS/m-p/364621#M86495</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to import Excel spreadsheets across platforms. I am using the following code but I get an error that Datarow is not valid. My data starts in row 7 and the column headings are in row6.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;proc import FILE=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"\\...My file.xlsx"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;out=Myfileout&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;dbms=excelcs&amp;nbsp; /*ExcelCS is required else I get "Class not registered" */&lt;/P&gt;&lt;P&gt;replace;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;sheet=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Dashboard"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;datarow=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;7&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;run;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 15:30:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Import-Starting-at-row-7-when-dbms-ExcelCS/m-p/364621#M86495</guid>
      <dc:creator>JSCohen</dc:creator>
      <dc:date>2017-06-06T15:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import Starting at row 7 when dbms=ExcelCS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Import-Starting-at-row-7-when-dbms-ExcelCS/m-p/364632#M86501</link>
      <description>&lt;P&gt;As the error says, datarows is not supported for Excel. You could try specifying a range to import such as Range="sheetname$a6:z200"&amp;nbsp;but you're not going to get variable names from row 6 and would have to use Proc datasets or similar to assign names you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or save the file as CSV and remove the first 5 rows before importing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc import expects "clean" data, column headings if any in the first row and then data. If the data is clean, a common issue with Excel, then you have to do more work. Or avoid using Excel files for data interchange if possible.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 15:59:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Import-Starting-at-row-7-when-dbms-ExcelCS/m-p/364632#M86501</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-06-06T15:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import Starting at row 7 when dbms=ExcelCS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Import-Starting-at-row-7-when-dbms-ExcelCS/m-p/364660#M86508</link>
      <description>&lt;P&gt;Depending on your SAS version, DBMS=XLSX may also work (SAS 9.3 TS2M3+).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As specified you can use a RANGE.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I thought it would still include the names when you specified the RANGE but you can probably test that.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 17:39:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Import-Starting-at-row-7-when-dbms-ExcelCS/m-p/364660#M86508</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-06-06T17:39:36Z</dc:date>
    </item>
  </channel>
</rss>

