<?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 multiple variables one datastep in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Rename-multiple-variables-one-datastep/m-p/104252#M21775</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;data test(rename=(rename=('A Category'n=A_Category);&amp;nbsp; rename=('B Category'n=B_Category)????&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;set mytable;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;I want to change the name of several variables.&amp;nbsp; Will I need a separate datastep for all?&amp;nbsp; FOr example I want to rename both A and B Category&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Aug 2013 19:41:04 GMT</pubDate>
    <dc:creator>omega1983</dc:creator>
    <dc:date>2013-08-07T19:41:04Z</dc:date>
    <item>
      <title>Rename multiple variables one datastep</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rename-multiple-variables-one-datastep/m-p/104252#M21775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;data test(rename=(rename=('A Category'n=A_Category);&amp;nbsp; rename=('B Category'n=B_Category)????&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;set mytable;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;I want to change the name of several variables.&amp;nbsp; Will I need a separate datastep for all?&amp;nbsp; FOr example I want to rename both A and B Category&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2013 19:41:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rename-multiple-variables-one-datastep/m-p/104252#M21775</guid>
      <dc:creator>omega1983</dc:creator>
      <dc:date>2013-08-07T19:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Rename multiple variables one datastep</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rename-multiple-variables-one-datastep/m-p/104253#M21776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data test(rename=('A Category'n=A_Category 'B Category'n=B_Category));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or better yet, since you are not performing any tasks in the small data step code other than renaming, use PROC DATASETS to rename your variables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2013 19:46:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rename-multiple-variables-one-datastep/m-p/104253#M21776</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2013-08-07T19:46:06Z</dc:date>
    </item>
  </channel>
</rss>

