<?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 excel from , skipping first 7 lines in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/import-excel-from-skipping-first-7-lines/m-p/301096#M63674</link>
    <description>&lt;P&gt;My start row starting row 9 and names are in row 8. using the code below I got :&lt;/P&gt;
&lt;P&gt;1794 namerow=8;&lt;BR /&gt; -------&lt;BR /&gt; 180&lt;BR /&gt;1795 datarow=9;&lt;BR /&gt; -------&lt;BR /&gt; 180&lt;BR /&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import out= work.spadfw
            datafile= "D:\Projects\Myfile.xlsx" 
            dbms=excel replace;
      *range="sheet1$"; 
      getnames=yes;
      namerow=8;
      datarow=9;
      *mixed=no;
      *scantext=yes;
      *usedate=yes;
      *scantime=yes;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Any hints? Thanks in advance.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Sep 2016 18:21:51 GMT</pubDate>
    <dc:creator>fengyuwuzu</dc:creator>
    <dc:date>2016-09-27T18:21:51Z</dc:date>
    <item>
      <title>import excel from , skipping first 7 lines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/import-excel-from-skipping-first-7-lines/m-p/301096#M63674</link>
      <description>&lt;P&gt;My start row starting row 9 and names are in row 8. using the code below I got :&lt;/P&gt;
&lt;P&gt;1794 namerow=8;&lt;BR /&gt; -------&lt;BR /&gt; 180&lt;BR /&gt;1795 datarow=9;&lt;BR /&gt; -------&lt;BR /&gt; 180&lt;BR /&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import out= work.spadfw
            datafile= "D:\Projects\Myfile.xlsx" 
            dbms=excel replace;
      *range="sheet1$"; 
      getnames=yes;
      namerow=8;
      datarow=9;
      *mixed=no;
      *scantext=yes;
      *usedate=yes;
      *scantime=yes;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Any hints? Thanks in advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2016 18:21:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/import-excel-from-skipping-first-7-lines/m-p/301096#M63674</guid>
      <dc:creator>fengyuwuzu</dc:creator>
      <dc:date>2016-09-27T18:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: import excel from , skipping first 7 lines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/import-excel-from-skipping-first-7-lines/m-p/301105#M63678</link>
      <description>&lt;P&gt;I'm pretty sure those options are only valid for XLS-type files. For XLSX use the RANGE option and GETNAMES to trigger reading column names from the row just above the range:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acpcref/67382/HTML/default/viewer.htm#n0msy4hy1so0ren1acm90iijxn8j.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/acpcref/67382/HTML/default/viewer.htm#n0msy4hy1so0ren1acm90iijxn8j.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2016 19:06:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/import-excel-from-skipping-first-7-lines/m-p/301105#M63678</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2016-09-27T19:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: import excel from , skipping first 7 lines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/import-excel-from-skipping-first-7-lines/m-p/301108#M63680</link>
      <description>&lt;P&gt;You could also try STARTROW= &amp;nbsp;instead of DATAROW. It might still work.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2016 19:26:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/import-excel-from-skipping-first-7-lines/m-p/301108#M63680</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-09-27T19:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: import excel from , skipping first 7 lines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/import-excel-from-skipping-first-7-lines/m-p/301169#M63702</link>
      <description>&lt;P&gt;DBMS=Excel + Datarow does not work for me either. DBMS=XLSX + Datarow should work.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2016 07:22:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/import-excel-from-skipping-first-7-lines/m-p/301169#M63702</guid>
      <dc:creator>user24feb</dc:creator>
      <dc:date>2016-09-28T07:22:04Z</dc:date>
    </item>
  </channel>
</rss>

