<?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 proc import for excel2003, getnames does not produce variable names from excel sheet's 1st line. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-import-for-excel2003-getnames-does-not-produce-variable/m-p/321135#M70829</link>
    <description>&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is for SAS University Edition related question.&lt;/P&gt;&lt;P&gt;When you use&amp;nbsp;proc import for excel2003, getname option does not produce variable names from excel sheet's 1st line.&lt;/P&gt;&lt;P&gt;The actual variable name becomes to be like 1_0 1_1 or something like this meanwhile the actual 1st line was like date, price, name etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you ever encountered similar issues and any work around?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much,&lt;/P&gt;&lt;P&gt;Kaz&lt;/P&gt;</description>
    <pubDate>Mon, 26 Dec 2016 04:32:08 GMT</pubDate>
    <dc:creator>k_shide</dc:creator>
    <dc:date>2016-12-26T04:32:08Z</dc:date>
    <item>
      <title>proc import for excel2003, getnames does not produce variable names from excel sheet's 1st line.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-import-for-excel2003-getnames-does-not-produce-variable/m-p/321135#M70829</link>
      <description>&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is for SAS University Edition related question.&lt;/P&gt;&lt;P&gt;When you use&amp;nbsp;proc import for excel2003, getname option does not produce variable names from excel sheet's 1st line.&lt;/P&gt;&lt;P&gt;The actual variable name becomes to be like 1_0 1_1 or something like this meanwhile the actual 1st line was like date, price, name etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you ever encountered similar issues and any work around?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much,&lt;/P&gt;&lt;P&gt;Kaz&lt;/P&gt;</description>
      <pubDate>Mon, 26 Dec 2016 04:32:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-import-for-excel2003-getnames-does-not-produce-variable/m-p/321135#M70829</guid>
      <dc:creator>k_shide</dc:creator>
      <dc:date>2016-12-26T04:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: proc import for excel2003, getnames does not produce variable names from excel sheet's 1st line.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-import-for-excel2003-getnames-does-not-produce-variable/m-p/321136#M70830</link>
      <description>&lt;P&gt;Try saving your spreadsheet as a CSV file and use DBMS = CSV to import. Excel is notoriously picky as far as imports are concerned. CSV files give you much greater control.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Dec 2016 04:48:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-import-for-excel2003-getnames-does-not-produce-variable/m-p/321136#M70830</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2016-12-26T04:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: proc import for excel2003, getnames does not produce variable names from excel sheet's 1st line.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-import-for-excel2003-getnames-does-not-produce-variable/m-p/321137#M70831</link>
      <description>&lt;P&gt;Post your code.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Dec 2016 04:49:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-import-for-excel2003-getnames-does-not-produce-variable/m-p/321137#M70831</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-12-26T04:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: proc import for excel2003, getnames does not produce variable names from excel sheet's 1st line.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-import-for-excel2003-getnames-does-not-produce-variable/m-p/321209#M70875</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/120766"&gt;@k_shide&lt;/a&gt;&amp;nbsp;I'm unable to replicate your issue on SAS UE - on a Macintosh though.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Someone else will have to verify Windows version.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import datafile='/folders/myfolders/VariableName.xls' 
out=test1 dbms=xls replace;
run;

proc import datafile='/folders/myfolders/VariableName.xls' 
out=test2 dbms=xls replace; Getnames=yes;
run;

title 'test1';
ods select variables;
proc contents data=test1;
run;
title 'test2';
ods select variables;
proc contents data=test2;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Results:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;SECTION data-name="Contents" data-sec-type="proc"&gt;
&lt;DIV id="IDX" class="systitleandfootercontainer"&gt;
&lt;P&gt;&lt;SPAN class="c systemtitle"&gt;test1&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;DIV class="proc_title_group"&gt;
&lt;P class="c proctitle"&gt;The CONTENTS Procedure&lt;/P&gt;
&lt;/DIV&gt;
&lt;SECTION&gt;
&lt;ARTICLE&gt;
&lt;TABLE class="table"&gt;&lt;COLGROUP&gt;&lt;COL /&gt;&lt;/COLGROUP&gt;&lt;COLGROUP&gt;&lt;COL /&gt;&lt;COL /&gt;&lt;COL /&gt;&lt;COL /&gt;&lt;COL /&gt;&lt;COL /&gt;&lt;/COLGROUP&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="c b header" colspan="7" scope="colgroup"&gt;Alphabetic List of Variables and Attributes&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r b header" scope="col"&gt;#&lt;/TH&gt;
&lt;TH class="b header" scope="col"&gt;Variable&lt;/TH&gt;
&lt;TH class="b header" scope="col"&gt;Type&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Len&lt;/TH&gt;
&lt;TH class="b header" scope="col"&gt;Format&lt;/TH&gt;
&lt;TH class="b header" scope="col"&gt;Informat&lt;/TH&gt;
&lt;TH class="b header" scope="col"&gt;Label&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;2&lt;/TH&gt;
&lt;TD class="data"&gt;Age&lt;/TD&gt;
&lt;TD class="data"&gt;Num&lt;/TD&gt;
&lt;TD class="r data"&gt;8&lt;/TD&gt;
&lt;TD class="data"&gt;BEST12.&lt;/TD&gt;
&lt;TD class="data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="data"&gt;Age&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;1&lt;/TH&gt;
&lt;TD class="data"&gt;Name&lt;/TD&gt;
&lt;TD class="data"&gt;Char&lt;/TD&gt;
&lt;TD class="r data"&gt;12&lt;/TD&gt;
&lt;TD class="data"&gt;$12.&lt;/TD&gt;
&lt;TD class="data"&gt;$12.&lt;/TD&gt;
&lt;TD class="data"&gt;Name&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;3&lt;/TH&gt;
&lt;TD class="data"&gt;Test&lt;/TD&gt;
&lt;TD class="data"&gt;Num&lt;/TD&gt;
&lt;TD class="r data"&gt;8&lt;/TD&gt;
&lt;TD class="data"&gt;BEST12.&lt;/TD&gt;
&lt;TD class="data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="data"&gt;Test&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/ARTICLE&gt;
&lt;/SECTION&gt;
&lt;/SECTION&gt;
&lt;SECTION data-name="Contents" data-sec-type="proc"&gt;&lt;HR /&gt;
&lt;DIV id="IDX1" class="systitleandfootercontainer"&gt;
&lt;P&gt;&lt;SPAN class="c systemtitle"&gt;test2&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;DIV class="proc_title_group"&gt;
&lt;P class="c proctitle"&gt;The CONTENTS Procedure&lt;/P&gt;
&lt;/DIV&gt;
&lt;SECTION&gt;
&lt;ARTICLE&gt;
&lt;TABLE class="table"&gt;&lt;COLGROUP&gt;&lt;COL /&gt;&lt;/COLGROUP&gt;&lt;COLGROUP&gt;&lt;COL /&gt;&lt;COL /&gt;&lt;COL /&gt;&lt;COL /&gt;&lt;COL /&gt;&lt;COL /&gt;&lt;/COLGROUP&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="c b header" colspan="7" scope="colgroup"&gt;Alphabetic List of Variables and Attributes&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r b header" scope="col"&gt;#&lt;/TH&gt;
&lt;TH class="b header" scope="col"&gt;Variable&lt;/TH&gt;
&lt;TH class="b header" scope="col"&gt;Type&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Len&lt;/TH&gt;
&lt;TH class="b header" scope="col"&gt;Format&lt;/TH&gt;
&lt;TH class="b header" scope="col"&gt;Informat&lt;/TH&gt;
&lt;TH class="b header" scope="col"&gt;Label&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;2&lt;/TH&gt;
&lt;TD class="data"&gt;Age&lt;/TD&gt;
&lt;TD class="data"&gt;Num&lt;/TD&gt;
&lt;TD class="r data"&gt;8&lt;/TD&gt;
&lt;TD class="data"&gt;BEST12.&lt;/TD&gt;
&lt;TD class="data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="data"&gt;Age&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;1&lt;/TH&gt;
&lt;TD class="data"&gt;Name&lt;/TD&gt;
&lt;TD class="data"&gt;Char&lt;/TD&gt;
&lt;TD class="r data"&gt;12&lt;/TD&gt;
&lt;TD class="data"&gt;$12.&lt;/TD&gt;
&lt;TD class="data"&gt;$12.&lt;/TD&gt;
&lt;TD class="data"&gt;Name&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;3&lt;/TH&gt;
&lt;TD class="data"&gt;Test&lt;/TD&gt;
&lt;TD class="data"&gt;Num&lt;/TD&gt;
&lt;TD class="r data"&gt;8&lt;/TD&gt;
&lt;TD class="data"&gt;BEST12.&lt;/TD&gt;
&lt;TD class="data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="data"&gt;Test&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/ARTICLE&gt;
&lt;/SECTION&gt;
&lt;/SECTION&gt;</description>
      <pubDate>Mon, 26 Dec 2016 21:27:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-import-for-excel2003-getnames-does-not-produce-variable/m-p/321209#M70875</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-12-26T21:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: proc import for excel2003, getnames does not produce variable names from excel sheet's 1st line.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-import-for-excel2003-getnames-does-not-produce-variable/m-p/321244#M70901</link>
      <description>Thanks. I think CSV is simple and good to use. Only one issue is if you have 20-30 sheets, it may be redundant to create all those files..</description>
      <pubDate>Tue, 27 Dec 2016 05:41:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-import-for-excel2003-getnames-does-not-produce-variable/m-p/321244#M70901</guid>
      <dc:creator>k_shide</dc:creator>
      <dc:date>2016-12-27T05:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: proc import for excel2003, getnames does not produce variable names from excel sheet's 1st line.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-import-for-excel2003-getnames-does-not-produce-variable/m-p/321245#M70902</link>
      <description>Thanks. I know you are using the University version with same codes and looks no issues... I just wonder if any format of excel sheet matters or browser I'm using... I don't know yet. Red Hat and Windows excel may matter. I am not sure..&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Dec 2016 05:42:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-import-for-excel2003-getnames-does-not-produce-variable/m-p/321245#M70902</guid>
      <dc:creator>k_shide</dc:creator>
      <dc:date>2016-12-27T05:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: proc import for excel2003, getnames does not produce variable names from excel sheet's 1st line.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-import-for-excel2003-getnames-does-not-produce-variable/m-p/321247#M70904</link>
      <description>The code is as follows.&lt;BR /&gt;proc import datafile='/folders/myfolders/aaa.xls'&lt;BR /&gt;out=aaa dbms=xls replace;&lt;BR /&gt;getnames=yes;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;If you use getnames=no then it produce variables like var1, var2 .....&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Dec 2016 06:06:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-import-for-excel2003-getnames-does-not-produce-variable/m-p/321247#M70904</guid>
      <dc:creator>k_shide</dc:creator>
      <dc:date>2016-12-27T06:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: proc import for excel2003, getnames does not produce variable names from excel sheet's 1st line.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-import-for-excel2003-getnames-does-not-produce-variable/m-p/321250#M70906</link>
      <description>&lt;P&gt;Consider attaching the xls file then. You can change the extension to get it uploaded.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you post a proc contents from two runs, one with getnames=yes and one with getnames=no.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2016 06:23:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-import-for-excel2003-getnames-does-not-produce-variable/m-p/321250#M70906</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-12-27T06:23:54Z</dc:date>
    </item>
  </channel>
</rss>

