<?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 rename variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/rename-variable/m-p/712333#M219611</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
alter table students rename column  Sex to Gender;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;here it shows error&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jan 2021 07:24:14 GMT</pubDate>
    <dc:creator>BrahmanandaRao</dc:creator>
    <dc:date>2021-01-19T07:24:14Z</dc:date>
    <item>
      <title>rename variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/rename-variable/m-p/712333#M219611</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
alter table students rename column  Sex to Gender;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;here it shows error&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 07:24:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/rename-variable/m-p/712333#M219611</guid>
      <dc:creator>BrahmanandaRao</dc:creator>
      <dc:date>2021-01-19T07:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: rename variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/rename-variable/m-p/712334#M219612</link>
      <description>&lt;P&gt;What does the error say? Are you sure you want to rename the variables like this?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 07:35:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/rename-variable/m-p/712334#M219612</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2021-01-19T07:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: rename variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/rename-variable/m-p/712336#M219614</link>
      <description>&lt;P&gt;Maxim 1: Read the Documentation.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=sqlproc&amp;amp;docsetTarget=n1ckvfae6xf2tyn1nrivm6egpr8b.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;ALTER TABLE&lt;/A&gt; in SQL. There is no RENAME clause for this SQL statement.&lt;/P&gt;
&lt;P&gt;To rename columns, use the RENAME statement or the RENAME= dataset option in data steps, or do a SELECT with AS in SQL.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 07:46:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/rename-variable/m-p/712336#M219614</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-01-19T07:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: rename variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/rename-variable/m-p/712382#M219632</link>
      <description>&lt;P&gt;If you don't want to rewrite he dataset with the new column name, but do it inplace - you can use&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc datasets lib=&amp;lt;librray&amp;gt; nolist;
   modify &amp;lt;dataset name&amp;gt;;
     rename &amp;lt;current name&amp;gt; = &amp;lt;new name&amp;gt;;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Jan 2021 11:37:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/rename-variable/m-p/712382#M219632</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2021-01-19T11:37:58Z</dc:date>
    </item>
  </channel>
</rss>

