<?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: how to change dataset names in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-change-dataset-names/m-p/860901#M340071</link>
    <description>&lt;P&gt;This is the classic "exchange two objects" problem in computing. You always need a third temporary object to hold one of the values, you can't move the data (or names, in your case) concurrently.&lt;/P&gt;</description>
    <pubDate>Sun, 26 Feb 2023 07:31:21 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2023-02-26T07:31:21Z</dc:date>
    <item>
      <title>how to change dataset names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-change-dataset-names/m-p/860892#M340064</link>
      <description>&lt;P&gt;data male female;&lt;BR /&gt;set sashelp.class ;&lt;BR /&gt;if sex='M' then output male;&lt;BR /&gt;else if sex='F' output female ;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc datasets lib=work memtype=data;&lt;BR /&gt;change female=male ;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have rename the dataset names like already we have two datasets male and female.&lt;BR /&gt;now i have to rename male dataset as female and female dataset as male&amp;nbsp;&lt;BR /&gt;how to do in proc datasets procedure ?&lt;/P&gt;</description>
      <pubDate>Sun, 26 Feb 2023 04:10:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-change-dataset-names/m-p/860892#M340064</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2023-02-26T04:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to change dataset names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-change-dataset-names/m-p/860898#M340068</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data male female;
  set sashelp.class;
  if sex='M' then output male;
  else if sex='F' then output female;
run;

proc datasets lib=work memtype=data nolist nowarn;
  delete _male _female;
  run;
  change female=_male male=_female;
  run;
  change _male=male _female=female;
  run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 26 Feb 2023 06:33:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-change-dataset-names/m-p/860898#M340068</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-02-26T06:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to change dataset names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-change-dataset-names/m-p/860901#M340071</link>
      <description>&lt;P&gt;This is the classic "exchange two objects" problem in computing. You always need a third temporary object to hold one of the values, you can't move the data (or names, in your case) concurrently.&lt;/P&gt;</description>
      <pubDate>Sun, 26 Feb 2023 07:31:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-change-dataset-names/m-p/860901#M340071</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-02-26T07:31:21Z</dc:date>
    </item>
  </channel>
</rss>

