<?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: Renaming a dataset during a proc copy in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Renaming-a-dataset-during-a-proc-copy/m-p/281439#M57078</link>
    <description>&lt;P&gt;Ome suggestion would be that you can use proc datasets to copy as well as rename.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another, which I would test for speed, is to use PROC Append, it uses a block copy method as well and doesn't require the base data to be pre-existing. Not sure if it's as fast as proc copy though.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jun 2016 13:58:49 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-06-30T13:58:49Z</dc:date>
    <item>
      <title>Renaming a dataset during a proc copy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Renaming-a-dataset-during-a-proc-copy/m-p/281434#M57074</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to move a dataset from one libname to another, but i don't want to use a data/set statement because they can be large and i have no reason to read the observations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But i want to rename the dataset in the new location.&amp;nbsp; I was using proc copy until the rename issue came up, and i can't find anything online that shows how to do that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc copy in=kcurr out=knew;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;select k4_29jun16;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to rename it to just K4 in the knew location.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Megan&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2016 13:46:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Renaming-a-dataset-during-a-proc-copy/m-p/281434#M57074</guid>
      <dc:creator>MeganE</dc:creator>
      <dc:date>2016-06-30T13:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming a dataset during a proc copy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Renaming-a-dataset-during-a-proc-copy/m-p/281435#M57075</link>
      <description>&lt;P&gt;Well, i have this working.&amp;nbsp; Anyone know how to get it all done in one step though instead of two?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc copy in=kcurr out=knew;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;select &amp;amp;k4.;&lt;BR /&gt;run;&lt;BR /&gt;proc datasets library=knew;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;change &amp;amp;k4.=k4;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2016 13:50:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Renaming-a-dataset-during-a-proc-copy/m-p/281435#M57075</guid>
      <dc:creator>MeganE</dc:creator>
      <dc:date>2016-06-30T13:50:31Z</dc:date>
    </item>
    <item>
      <title>Betreff: Renaming a dataset during a proc copy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Renaming-a-dataset-during-a-proc-copy/m-p/281436#M57076</link>
      <description>&lt;P&gt;Use proc datasets and "change"-statement to rename the dataset after/before it is copied. Unfortunately proc copy has no rename option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Well, i am to slow today &lt;span class="lia-unicode-emoji" title=":neutral_face:"&gt;😐&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2016 13:53:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Renaming-a-dataset-during-a-proc-copy/m-p/281436#M57076</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2016-06-30T13:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming a dataset during a proc copy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Renaming-a-dataset-during-a-proc-copy/m-p/281439#M57078</link>
      <description>&lt;P&gt;Ome suggestion would be that you can use proc datasets to copy as well as rename.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another, which I would test for speed, is to use PROC Append, it uses a block copy method as well and doesn't require the base data to be pre-existing. Not sure if it's as fast as proc copy though.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2016 13:58:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Renaming-a-dataset-during-a-proc-copy/m-p/281439#M57078</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-06-30T13:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming a dataset during a proc copy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Renaming-a-dataset-during-a-proc-copy/m-p/281601#M57133</link>
      <description>&lt;P&gt;you could try. But I don't know if it could work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;proc datasets library=kcurr ;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;change &amp;amp;k4.=k4;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;copy out=&lt;SPAN&gt;knew;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;quit;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2016 01:54:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Renaming-a-dataset-during-a-proc-copy/m-p/281601#M57133</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-07-01T01:54:13Z</dc:date>
    </item>
  </channel>
</rss>

