<?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: not to generate variable names from excel in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/not-to-generate-variable-names-from-excel/m-p/68977#M14972</link>
    <description>&lt;A href="http://www.ats.ucla.edu/stat/sas/faq/rwxls8.htm" target="_blank"&gt;http://www.ats.ucla.edu/stat/sas/faq/rwxls8.htm&lt;/A&gt;</description>
    <pubDate>Sun, 06 Feb 2011 07:25:35 GMT</pubDate>
    <dc:creator>ariari</dc:creator>
    <dc:date>2011-02-06T07:25:35Z</dc:date>
    <item>
      <title>not to generate variable names from excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/not-to-generate-variable-names-from-excel/m-p/68976#M14971</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
I'm using SAS 9.1.3 and I need to import excel 2007 (.xlsx) files into SAS so, I am using SAS/ACCESS interface to ODBC with the Excel 2007 ODBC driver. This method works fine, but it automatically generates variable names from the first row of excel sheet. Is there an option to prevent this (like GETNAMES=NO in proc import)?&lt;BR /&gt;
&lt;BR /&gt;
My code:&lt;BR /&gt;
&lt;BR /&gt;
libname myxls odbc required="Driver={Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)};&lt;BR /&gt;
		dbq=c:\spreadsheet.xlsx"&lt;BR /&gt;
		access=readonly defer=yes;&lt;BR /&gt;
&lt;BR /&gt;
data one;&lt;BR /&gt;
	set myxls."data$A9:Z500"n;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
thanks for your time!!

Message was edited by: Nick R</description>
      <pubDate>Thu, 03 Feb 2011 21:14:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/not-to-generate-variable-names-from-excel/m-p/68976#M14971</guid>
      <dc:creator>NickR</dc:creator>
      <dc:date>2011-02-03T21:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: not to generate variable names from excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/not-to-generate-variable-names-from-excel/m-p/68977#M14972</link>
      <description>&lt;A href="http://www.ats.ucla.edu/stat/sas/faq/rwxls8.htm" target="_blank"&gt;http://www.ats.ucla.edu/stat/sas/faq/rwxls8.htm&lt;/A&gt;</description>
      <pubDate>Sun, 06 Feb 2011 07:25:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/not-to-generate-variable-names-from-excel/m-p/68977#M14972</guid>
      <dc:creator>ariari</dc:creator>
      <dc:date>2011-02-06T07:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: not to generate variable names from excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/not-to-generate-variable-names-from-excel/m-p/68978#M14973</link>
      <description>More the topic, use this Google advanced search argument to find relevant SAS support &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  topic papers/references.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Suggested Google advanced search arguments, this topic / post:&lt;BR /&gt;
&lt;BR /&gt;
sas 9.1.3 excel xlsx support site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
sas 9.1.3 getnames site:sas.com</description>
      <pubDate>Sun, 06 Feb 2011 20:11:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/not-to-generate-variable-names-from-excel/m-p/68978#M14973</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2011-02-06T20:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: not to generate variable names from excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/not-to-generate-variable-names-from-excel/m-p/68979#M14974</link>
      <description>The link you've provided describes importing .XLS files. I need to import .XLSX (excel 2007) files, without generating variable names from the spreadsheet.</description>
      <pubDate>Mon, 07 Feb 2011 15:23:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/not-to-generate-variable-names-from-excel/m-p/68979#M14974</guid>
      <dc:creator>NickR</dc:creator>
      <dc:date>2011-02-07T15:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: not to generate variable names from excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/not-to-generate-variable-names-from-excel/m-p/68980#M14975</link>
      <description>Thanks. I tried searching using Google advanced search argument but no luck so far. Will contact SAS technical support.</description>
      <pubDate>Mon, 07 Feb 2011 15:36:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/not-to-generate-variable-names-from-excel/m-p/68980#M14975</guid>
      <dc:creator>NickR</dc:creator>
      <dc:date>2011-02-07T15:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: not to generate variable names from excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/not-to-generate-variable-names-from-excel/m-p/68981#M14976</link>
      <description>How about :&lt;BR /&gt;
[pre]&lt;BR /&gt;
libname xls excel path='c:\test.xls' header=no;&lt;BR /&gt;
proc sql;&lt;BR /&gt;
 create table xls as&lt;BR /&gt;
  select * from xls.'Sheet1$'n;&lt;BR /&gt;
quit;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
      <pubDate>Wed, 23 Feb 2011 07:15:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/not-to-generate-variable-names-from-excel/m-p/68981#M14976</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-02-23T07:15:11Z</dc:date>
    </item>
  </channel>
</rss>

