<?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: when read excel data ,  I want to change the variable name  , how should I do ? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/when-read-excel-data-I-want-to-change-the-variable-name-how/m-p/819225#M323390</link>
    <description>Thank you for your help.</description>
    <pubDate>Mon, 20 Jun 2022 23:24:27 GMT</pubDate>
    <dc:creator>tianerhu</dc:creator>
    <dc:date>2022-06-20T23:24:27Z</dc:date>
    <item>
      <title>when read excel data ,  I want to change the variable name  , how should I do ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/when-read-excel-data-I-want-to-change-the-variable-name-how/m-p/819215#M323384</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tianerhu_1-1655762292071.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/72467i73C1EA740BA1F5DB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tianerhu_1-1655762292071.png" alt="tianerhu_1-1655762292071.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I want to instead of A B C to Name Height Weight ?&amp;nbsp; Thank you .&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 21:59:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/when-read-excel-data-I-want-to-change-the-variable-name-how/m-p/819215#M323384</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2022-06-20T21:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: when read excel data ,  I want to change the variable name  , how should I do ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/when-read-excel-data-I-want-to-change-the-variable-name-how/m-p/819219#M323386</link>
      <description>&lt;P&gt;If you are reading from an actual EXCEL file (an XLSX file or even an old style XLS file) then use the RANGE option on PROC IMPORT.&amp;nbsp; For that example tell it the range starts in A3 instead of the default of A1.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import datafile='myfile.xlxs' dbms=xlsx out=want replace ;
  range='$A3:' ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Example you can use to test:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename x temp;
proc export data=sashelp.class file=x dbms=xlsx replace;
run;
proc import datafile=x out=want replace dbms=xlsx;
  range='$A2:';
run;

proc print data=sashelp.class(obs=2); run;
proc print data=want(obs=1); run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Results:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_0-1655764445176.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/72468i72E2131F9988264C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tom_0-1655764445176.png" alt="Tom_0-1655764445176.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 22:34:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/when-read-excel-data-I-want-to-change-the-variable-name-how/m-p/819219#M323386</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-06-20T22:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: when read excel data ,  I want to change the variable name  , how should I do ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/when-read-excel-data-I-want-to-change-the-variable-name-how/m-p/819225#M323390</link>
      <description>Thank you for your help.</description>
      <pubDate>Mon, 20 Jun 2022 23:24:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/when-read-excel-data-I-want-to-change-the-variable-name-how/m-p/819225#M323390</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2022-06-20T23:24:27Z</dc:date>
    </item>
  </channel>
</rss>

