<?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 how to rename the selected multiple variables in  datasets in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-rename-the-selected-multiple-variables-in-datasets/m-p/549224#M152374</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have multiple data sets in a library and some of the datasets have same variable(ex: Id).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now i want to rename all the variables from ID to EMP_ID.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Apr 2019 11:54:03 GMT</pubDate>
    <dc:creator>gsreddy</dc:creator>
    <dc:date>2019-04-08T11:54:03Z</dc:date>
    <item>
      <title>how to rename the selected multiple variables in  datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-rename-the-selected-multiple-variables-in-datasets/m-p/549224#M152374</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have multiple data sets in a library and some of the datasets have same variable(ex: Id).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now i want to rename all the variables from ID to EMP_ID.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2019 11:54:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-rename-the-selected-multiple-variables-in-datasets/m-p/549224#M152374</guid>
      <dc:creator>gsreddy</dc:creator>
      <dc:date>2019-04-08T11:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to rename the selected multiple variables in  datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-rename-the-selected-multiple-variables-in-datasets/m-p/549234#M152376</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc datasets library=work nolist;
    modify datasetname;
    rename id=emp_id;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Apr 2019 12:14:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-rename-the-selected-multiple-variables-in-datasets/m-p/549234#M152376</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-04-08T12:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to rename the selected multiple variables in  datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-rename-the-selected-multiple-variables-in-datasets/m-p/549246#M152377</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data one;
ID=1;var=1;
run;

data two;
var=1;
run;

data three;
ID=1;var=1;
run;

data _null_;
   set sashelp.vcolumn(where=(libname='WORK' and name='ID'));
   string=compbl(cat(
      "
      proc datasets library=work nolist;
         modify ", memname, ";
         rename id=emp_id;
      run;quit;
      "
      ));
   output;
   call execute(string);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Apr 2019 12:47:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-rename-the-selected-multiple-variables-in-datasets/m-p/549246#M152377</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-04-08T12:47:04Z</dc:date>
    </item>
  </channel>
</rss>

