<?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: How  to import excel data in which data starts in row 9 in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-import-excel-data-in-which-data-starts-in-row-9/m-p/295084#M60102</link>
    <description>&lt;P&gt;According to SAS Documentatio, the option is DATAROW.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See: &amp;nbsp;&lt;A href="http://www.listendata.com/2013/09/importing-excel-data-into-sas.html" target="_blank"&gt;http://www.listendata.com/2013/09/importing-excel-data-into-sas.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;STARTROW has different meaning and is not mentiond with PROC IMPORT.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe new versions accept also STARTROW.&lt;/P&gt;&lt;P&gt;Better check on WINDOWS environment both options.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Aug 2016 08:53:54 GMT</pubDate>
    <dc:creator>Shmuel</dc:creator>
    <dc:date>2016-08-30T08:53:54Z</dc:date>
    <item>
      <title>How  to import excel data in which data starts in row 9</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-import-excel-data-in-which-data-starts-in-row-9/m-p/294861#M60090</link>
      <description>&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;I need help in my code in importing excel data. The excel file contains data starting from row 9. The row 9 contains variable names. In row 1-8 there is other information about study. I need to import only data starting from row 9. Please help in my code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code;&lt;/P&gt;&lt;P&gt;proc import datafile="C:\Users\ana\raw/data.xls" &amp;nbsp; &amp;nbsp; &amp;nbsp; DBMS=xls &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;out=out;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2016 15:18:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-import-excel-data-in-which-data-starts-in-row-9/m-p/294861#M60090</guid>
      <dc:creator>knveraraju91</dc:creator>
      <dc:date>2016-08-29T15:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: How  to import excel data in which data starts in row 9</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-import-excel-data-in-which-data-starts-in-row-9/m-p/294875#M60093</link>
      <description>&lt;P&gt;Add a &amp;nbsp;DATAROW option and try:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc import datafile="C:\Users\ana\raw/data.xls" &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DBMS=xls &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DATAROW = 9 &amp;nbsp; &amp;nbsp;/* 1st row to output */ &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;out=out;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2016 15:50:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-import-excel-data-in-which-data-starts-in-row-9/m-p/294875#M60093</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-08-29T15:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: How  to import excel data in which data starts in row 9</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-import-excel-data-in-which-data-starts-in-row-9/m-p/295038#M60100</link>
      <description>&lt;PRE&gt;

proc import datafile="/folders/myfolders/shoe.xls"      
                   DBMS=xls    replace out=out;
                   STARTROW = 9  ;  /* 1st row to output */       
run;
&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Aug 2016 03:40:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-import-excel-data-in-which-data-starts-in-row-9/m-p/295038#M60100</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-08-30T03:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: How  to import excel data in which data starts in row 9</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-import-excel-data-in-which-data-starts-in-row-9/m-p/295084#M60102</link>
      <description>&lt;P&gt;According to SAS Documentatio, the option is DATAROW.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See: &amp;nbsp;&lt;A href="http://www.listendata.com/2013/09/importing-excel-data-into-sas.html" target="_blank"&gt;http://www.listendata.com/2013/09/importing-excel-data-into-sas.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;STARTROW has different meaning and is not mentiond with PROC IMPORT.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe new versions accept also STARTROW.&lt;/P&gt;&lt;P&gt;Better check on WINDOWS environment both options.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 08:53:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-import-excel-data-in-which-data-starts-in-row-9/m-p/295084#M60102</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-08-30T08:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: How  to import excel data in which data starts in row 9</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-import-excel-data-in-which-data-starts-in-row-9/m-p/295139#M60105</link>
      <description>&lt;PRE&gt;
If I was right, datarow= is only for text file like CSV ,TXT ...while startrow= is for XLS engine .
Here is what I got :




 
 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 51         
 52         
 53         proc import datafile="/folders/myfolders/have.xls"
 54                            DBMS=xls    replace out=out;
 55                            STARTROW = 9  ;  /* 1st row to output */
 56         run;
 
 NOTE: The import data set has 12 observations and 5 variables.
 NOTE: WORK.OUT data set was successfully created.
 NOTE: PROCEDURE IMPORT used (Total process time):
       real time           0.02 seconds
       cpu time            0.02 seconds
       
 
 57         
 58         
 59         
 60         
 NOTE: PROCEDURE IMPORT used (Total process time):
       real time           0.01 seconds
       cpu time            0.01 seconds
       
 NOTE: The SAS System stopped processing this step because of errors.
 61         proc import datafile="/folders/myfolders/have.xls"
 62                            DBMS=xls
 63                            DATAROW = 9    /* 1st row to output */
                               _______
                               22
                               202
 ERROR 22-322: Syntax error, expecting one of the following: ;, DATAFILE, DATATABLE, DBMS, DEBUG, FILE, OUT, REPLACE, TABLE, 
               _DEBUG_.  
 
 ERROR 202-322: The option or parameter is not recognized and will be ignored.
 
 64                            out=out;
 65         run;
 66         
 67         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 77         

&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Aug 2016 13:14:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-import-excel-data-in-which-data-starts-in-row-9/m-p/295139#M60105</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-08-30T13:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: How  to import excel data in which data starts in row 9</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-import-excel-data-in-which-data-starts-in-row-9/m-p/295143#M60106</link>
      <description>&lt;PRE&gt;
Interesting. Both option could work for XLS engine.


 
 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 51         
 52         
 53         proc import datafile="/folders/myfolders/have.xls"
 54                            DBMS=xls    replace out=out;
 55                            STARTROW = 9  ;  /* 1st row to output */
 56         run;
 
 NOTE: The import data set has 12 observations and 5 variables.
 NOTE: WORK.OUT data set was successfully created.
 NOTE: PROCEDURE IMPORT used (Total process time):
       real time           0.02 seconds
       cpu time            0.02 seconds
       
 
 57         
 58         
 59         
 60         
 61         proc import datafile="/folders/myfolders/have.xls"
 62                            DBMS=xls    replace out=out;
 63                            DATAROW = 9 ;   /* 1st row to output */
 64         run;
 
 NOTE: The import data set has 12 observations and 5 variables.
 NOTE: WORK.OUT data set was successfully created.
 NOTE: PROCEDURE IMPORT used (Total process time):
       real time           0.02 seconds
       cpu time            0.01 seconds
       
 
 65         
 66         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 76         


&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Aug 2016 13:20:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-import-excel-data-in-which-data-starts-in-row-9/m-p/295143#M60106</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-08-30T13:20:22Z</dc:date>
    </item>
  </channel>
</rss>

