<?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: Rename in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Rename/m-p/672384#M202071</link>
    <description>&lt;PRE&gt;data _null_;
   set new_names end=last;
   if _n_=1 then do;
      call execute("proc datasets library=work;
      modify ttt;
      rename");
   end;
   call execute (oldname||'='||newname);
   if last then call execute(';quit;');
run;
   
&lt;/PRE&gt;
&lt;P&gt;You may want to consider searching the forum. This sort of question has been asked and answered a number of times.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 26 Jul 2020 10:47:01 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2020-07-26T10:47:01Z</dc:date>
    <item>
      <title>Rename</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rename/m-p/672382#M202069</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I want to rename columns in data set ttt by&amp;nbsp; using help data set that tell for each column name what will be the new column name&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data ttt;
Input F1 F2 F3 $ F4 F5 F6 $;
cards;
1 2 Judy 4 5 Halifax 
;
run;

Data New_Names;
Input oldName $ NewName $;
Cards;
F1 ID
F2 age
F3 name
F4 height
F5 weight
F6 bank
;
Run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 26 Jul 2020 10:31:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rename/m-p/672382#M202069</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2020-07-26T10:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Rename</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rename/m-p/672384#M202071</link>
      <description>&lt;PRE&gt;data _null_;
   set new_names end=last;
   if _n_=1 then do;
      call execute("proc datasets library=work;
      modify ttt;
      rename");
   end;
   call execute (oldname||'='||newname);
   if last then call execute(';quit;');
run;
   
&lt;/PRE&gt;
&lt;P&gt;You may want to consider searching the forum. This sort of question has been asked and answered a number of times.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jul 2020 10:47:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rename/m-p/672384#M202071</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-07-26T10:47:01Z</dc:date>
    </item>
  </channel>
</rss>

