<?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: rename data set in work library into data set  in permanent library in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/rename-data-set-in-work-library-into-data-set-in-permanent/m-p/755297#M238348</link>
    <description>&lt;P&gt;It's not a rename, it's not a move, it's a copy. Once you do this, you now have two exact identical copies of the data set, one in library WORK and one in library RRR. The documentation is &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/proc/p04y85z9f13uaan10s1k40ptx6gs.htm" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc copy in=work out=rrr;
    select a;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Jul 2021 11:17:13 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2021-07-20T11:17:13Z</dc:date>
    <item>
      <title>rename data set in work library into data set  in permanent library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/rename-data-set-in-work-library-into-data-set-in-permanent/m-p/755256#M238326</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;This code rename data set A (in library Work) to data set B (in library work).&lt;/P&gt;
&lt;P&gt;I want to rename data set A (in data set work) into data set B in library RRR.&lt;/P&gt;
&lt;P&gt;What is the way to do it please?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc datasets library=WORK;
   change A=B;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Jul 2021 08:28:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/rename-data-set-in-work-library-into-data-set-in-permanent/m-p/755256#M238326</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2021-07-20T08:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: rename data set in work library into data set  in permanent library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/rename-data-set-in-work-library-into-data-set-in-permanent/m-p/755258#M238327</link>
      <description>&lt;P&gt;Data step.&lt;/P&gt;
&lt;P&gt;Renaming might only work if&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;it is done in the operating system (external command, XCMD required)&lt;/LI&gt;
&lt;LI&gt;the permanent library is on the same physical volume as WORK; otherwise, the mv command (if on UNIX) will do a copy followed by delete&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Make sure that options (COMPRESS!) are replicated.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 08:39:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/rename-data-set-in-work-library-into-data-set-in-permanent/m-p/755258#M238327</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-07-20T08:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: rename data set in work library into data set  in permanent library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/rename-data-set-in-work-library-into-data-set-in-permanent/m-p/755263#M238332</link>
      <description>&lt;P&gt;You can't. Renaming a file works if the file doesn't move (I know &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;,&amp;nbsp;the &lt;FONT face="courier new,courier"&gt;mv&lt;/FONT&gt; command thinks otherwise :).&lt;/P&gt;
&lt;P&gt;Here the data set is going to a different library, so you must move (or copy) it, not rename it.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 08:58:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/rename-data-set-in-work-library-into-data-set-in-permanent/m-p/755263#M238332</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-07-20T08:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: rename data set in work library into data set  in permanent library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/rename-data-set-in-work-library-into-data-set-in-permanent/m-p/755278#M238339</link>
      <description>Rather than using a DATA step, a faster method would be to use PROC COPY.</description>
      <pubDate>Tue, 20 Jul 2021 09:49:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/rename-data-set-in-work-library-into-data-set-in-permanent/m-p/755278#M238339</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2021-07-20T09:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: rename data set in work library into data set  in permanent library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/rename-data-set-in-work-library-into-data-set-in-permanent/m-p/755290#M238345</link>
      <description>&lt;P&gt;Can you show the full code please with&amp;nbsp;&lt;SPAN&gt;PROC COPY&amp;nbsp; that rename data set work.A&amp;nbsp; into&amp;nbsp; data set RRR.A ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 10:41:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/rename-data-set-in-work-library-into-data-set-in-permanent/m-p/755290#M238345</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2021-07-20T10:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: rename data set in work library into data set  in permanent library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/rename-data-set-in-work-library-into-data-set-in-permanent/m-p/755292#M238347</link>
      <description>&lt;P&gt;I will not insult your intelligence by spoon-feeding you this very-easy-to-use procedure.&lt;/P&gt;
&lt;P&gt;Just find your way from the&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/proc/p04y85z9f13uaan10s1k40ptx6gs.htm" target="_blank" rel="noopener"&gt;documentation&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;If you run into an unsolvable problem, post your log.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 10:45:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/rename-data-set-in-work-library-into-data-set-in-permanent/m-p/755292#M238347</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-07-20T10:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: rename data set in work library into data set  in permanent library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/rename-data-set-in-work-library-into-data-set-in-permanent/m-p/755297#M238348</link>
      <description>&lt;P&gt;It's not a rename, it's not a move, it's a copy. Once you do this, you now have two exact identical copies of the data set, one in library WORK and one in library RRR. The documentation is &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/proc/p04y85z9f13uaan10s1k40ptx6gs.htm" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc copy in=work out=rrr;
    select a;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 11:17:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/rename-data-set-in-work-library-into-data-set-in-permanent/m-p/755297#M238348</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-07-20T11:17:13Z</dc:date>
    </item>
  </channel>
</rss>

