<?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: specifying variable names row using libname xlsx in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/specifying-variable-names-row-using-libname-xlsx/m-p/466632#M119080</link>
    <description>&lt;P&gt;Instead of LIBNAME you can try PROC IMPORT with the DBMS = XLSX engine.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can specify the RANGE there, or at least the starting. If you include 0 as the end, it reads all the data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Untested code and not sure if it work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import out=want datafile='path to xlsx' dbms=xlsx; 
range='ROA13 Table 1 - Data Set Work$A3:0';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 31 May 2018 20:38:10 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-05-31T20:38:10Z</dc:date>
    <item>
      <title>specifying variable names row using libname xlsx</title>
      <link>https://communities.sas.com/t5/SAS-Programming/specifying-variable-names-row-using-libname-xlsx/m-p/466604#M119064</link>
      <description>&lt;P&gt;If I'm reading in an Excel worksheet using the libname xlsx option and the variable names are on 3rd row, for example, is there a way to tell SAS to use that row rather than the first row?&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 19:31:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/specifying-variable-names-row-using-libname-xlsx/m-p/466604#M119064</guid>
      <dc:creator>Batman</dc:creator>
      <dc:date>2018-05-31T19:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: specifying variable names row using libname xlsx</title>
      <link>https://communities.sas.com/t5/SAS-Programming/specifying-variable-names-row-using-libname-xlsx/m-p/466616#M119071</link>
      <description>&lt;P&gt;You can specify your data table position&amp;nbsp;with the syntax&amp;nbsp;&lt;STRONG&gt;myLib.'mySheet$A3:G200'n&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 19:55:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/specifying-variable-names-row-using-libname-xlsx/m-p/466616#M119071</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-05-31T19:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: specifying variable names row using libname xlsx</title>
      <link>https://communities.sas.com/t5/SAS-Programming/specifying-variable-names-row-using-libname-xlsx/m-p/466626#M119075</link>
      <description>&lt;P&gt;Thanks, what if the combine file name and range exceed 32 characters?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;26 GOPTIONS ACCESSIBLE;&lt;/P&gt;&lt;P&gt;27 data temp;&lt;/P&gt;&lt;P&gt;28 set&lt;/P&gt;&lt;P&gt;29 test.'ROA13 TABLE 1 - DATA SET WORK$A3:G200'n;&lt;/P&gt;&lt;P&gt;_____________________________________________&lt;/P&gt;&lt;P&gt;307&lt;/P&gt;&lt;P&gt;ERROR 307-185: The data set name cannot have more than 32 characters.&lt;/P&gt;&lt;P&gt;30 run;&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;WARNING: The data set WORK.TEMP may be incomplete. When this step was stopped there were 0 observations and 6 variables.&lt;/P&gt;&lt;P&gt;WARNING: Data set WORK.TEMP was not replaced because this step was stopped.&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;real time 0.03 seconds&lt;/P&gt;&lt;P&gt;cpu time 0.03 seconds&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 20:20:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/specifying-variable-names-row-using-libname-xlsx/m-p/466626#M119075</guid>
      <dc:creator>Batman</dc:creator>
      <dc:date>2018-05-31T20:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: specifying variable names row using libname xlsx</title>
      <link>https://communities.sas.com/t5/SAS-Programming/specifying-variable-names-row-using-libname-xlsx/m-p/466632#M119080</link>
      <description>&lt;P&gt;Instead of LIBNAME you can try PROC IMPORT with the DBMS = XLSX engine.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can specify the RANGE there, or at least the starting. If you include 0 as the end, it reads all the data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Untested code and not sure if it work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import out=want datafile='path to xlsx' dbms=xlsx; 
range='ROA13 Table 1 - Data Set Work$A3:0';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 31 May 2018 20:38:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/specifying-variable-names-row-using-libname-xlsx/m-p/466632#M119080</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-05-31T20:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: specifying variable names row using libname xlsx</title>
      <link>https://communities.sas.com/t5/SAS-Programming/specifying-variable-names-row-using-libname-xlsx/m-p/466711#M119127</link>
      <description>&lt;P&gt;The 32 character limitation is being fixed in SAS 9.5, due out towards the end of the year you will then be able to use up to 255 characters.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2018 02:44:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/specifying-variable-names-row-using-libname-xlsx/m-p/466711#M119127</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-06-01T02:44:28Z</dc:date>
    </item>
  </channel>
</rss>

