<?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 Can I rename a variable in a SAS data set without  using data step, in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Can-I-rename-a-variable-in-a-SAS-data-set-without-using-data/m-p/544485#M150588</link>
    <description>&lt;P&gt;Can I rename a variable in a SAS data set without input/output actions in data step, since I don't change the data stored in the set actually?&lt;/P&gt;</description>
    <pubDate>Wed, 20 Mar 2019 09:34:42 GMT</pubDate>
    <dc:creator>Steve1964</dc:creator>
    <dc:date>2019-03-20T09:34:42Z</dc:date>
    <item>
      <title>Can I rename a variable in a SAS data set without  using data step,</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-I-rename-a-variable-in-a-SAS-data-set-without-using-data/m-p/544485#M150588</link>
      <description>&lt;P&gt;Can I rename a variable in a SAS data set without input/output actions in data step, since I don't change the data stored in the set actually?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 09:34:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-I-rename-a-variable-in-a-SAS-data-set-without-using-data/m-p/544485#M150588</guid>
      <dc:creator>Steve1964</dc:creator>
      <dc:date>2019-03-20T09:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Can I rename a variable in a SAS data set without  using data step,</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-I-rename-a-variable-in-a-SAS-data-set-without-using-data/m-p/544492#M150589</link>
      <description>&lt;P&gt;Yes, you could use proc sql instead:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql; create table TEST as select&lt;/P&gt;&lt;P&gt;old_name as new name,&lt;/P&gt;&lt;P&gt;other_stuff,&lt;/P&gt;&lt;P&gt;more_other_stuff&lt;/P&gt;&lt;P&gt;from TEST;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or proc datasets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 09:44:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-I-rename-a-variable-in-a-SAS-data-set-without-using-data/m-p/544492#M150589</guid>
      <dc:creator>SaraBoltman1</dc:creator>
      <dc:date>2019-03-20T09:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can I rename a variable in a SAS data set without  using data step,</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-I-rename-a-variable-in-a-SAS-data-set-without-using-data/m-p/544502#M150596</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
 set sashelp.class;
run;
proc datasets library=work nolist nodetails;
modify have;
rename name=xxxxxx;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Mar 2019 10:51:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-I-rename-a-variable-in-a-SAS-data-set-without-using-data/m-p/544502#M150596</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-03-20T10:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Can I rename a variable in a SAS data set without  using data step,</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-I-rename-a-variable-in-a-SAS-data-set-without-using-data/m-p/544649#M150640</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/260298"&gt;@SaraBoltman1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Yes, you could use proc sql instead:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql; create table TEST as select&lt;/P&gt;
&lt;P&gt;old_name as new name,&lt;/P&gt;
&lt;P&gt;other_stuff,&lt;/P&gt;
&lt;P&gt;more_other_stuff&lt;/P&gt;
&lt;P&gt;from TEST;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Doesn't this require the processing of every observation in the data step?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Or proc datasets.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm 100% sure this does not require processing of every observation in the data step. It doesn't even have to process one observation.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 17:11:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-I-rename-a-variable-in-a-SAS-data-set-without-using-data/m-p/544649#M150640</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-03-20T17:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Can I rename a variable in a SAS data set without  using data step,</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-I-rename-a-variable-in-a-SAS-data-set-without-using-data/m-p/544682#M150645</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/264961"&gt;@Steve1964&lt;/a&gt; No, you cant. As suggested by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;, uwing proc datasets is the most efficient way to solve the issue.</description>
      <pubDate>Wed, 20 Mar 2019 18:56:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-I-rename-a-variable-in-a-SAS-data-set-without-using-data/m-p/544682#M150645</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2019-03-20T18:56:59Z</dc:date>
    </item>
  </channel>
</rss>

