<?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 Copy sas dataset from work library to permanent library in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Copy-sas-dataset-from-work-library-to-permanent-library/m-p/259200#M50102</link>
    <description>&lt;P&gt;Is there any easy way to copy all dataset from work library to permanent library? Ex:- Suppose I have 10 dataset to be in work library (test1, test2 .. test10) and I want to copy all of them in permanent library ( libname data "/.") with same name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any proc that could do that or only way is to get work location and loop all dataset from work location and store it to permanent dataset ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Tue, 29 Mar 2016 17:46:53 GMT</pubDate>
    <dc:creator>nkm123</dc:creator>
    <dc:date>2016-03-29T17:46:53Z</dc:date>
    <item>
      <title>Copy sas dataset from work library to permanent library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copy-sas-dataset-from-work-library-to-permanent-library/m-p/259200#M50102</link>
      <description>&lt;P&gt;Is there any easy way to copy all dataset from work library to permanent library? Ex:- Suppose I have 10 dataset to be in work library (test1, test2 .. test10) and I want to copy all of them in permanent library ( libname data "/.") with same name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any proc that could do that or only way is to get work location and loop all dataset from work location and store it to permanent dataset ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2016 17:46:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copy-sas-dataset-from-work-library-to-permanent-library/m-p/259200#M50102</guid>
      <dc:creator>nkm123</dc:creator>
      <dc:date>2016-03-29T17:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Copy sas dataset from work library to permanent library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copy-sas-dataset-from-work-library-to-permanent-library/m-p/259201#M50103</link>
      <description>&lt;P&gt;Proc copy or proc datasets.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Mar 2016 02:38:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copy-sas-dataset-from-work-library-to-permanent-library/m-p/259201#M50103</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-03-26T02:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Copt sas dataset from work library to permanent library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copy-sas-dataset-from-work-library-to-permanent-library/m-p/259213#M50113</link>
      <description>&lt;P&gt;You might consider the SAS system option USER. &amp;nbsp;This will allow all one level names to be written to the library specified in the option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/lesysoptsref/68023/HTML/default/viewer.htm#p1tl8adik7ypwun1utdwxaauf9wq.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/lesysoptsref/68023/HTML/default/viewer.htm#p1tl8adik7ypwun1utdwxaauf9wq.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Mar 2016 10:28:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copy-sas-dataset-from-work-library-to-permanent-library/m-p/259213#M50113</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2016-03-26T10:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Copt sas dataset from work library to permanent library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copy-sas-dataset-from-work-library-to-permanent-library/m-p/259228#M50117</link>
      <description>&lt;P&gt;It's not quite clear from your post whether this is a one-time task or if you plan to do this regularly, occasionally or as part of a larger SAS program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you just want to prevent automatic deletion of the work datasets at the end of a SAS session, you can use the &lt;A href="http://support.sas.com/documentation/cdl/en/syntaxidx/68719/HTML/default/index.htm#/documentation/cdl//en/lesysoptsref/68023/HTML/default/p182lylgccdsgin14sgkqd4heyiz.htm" target="_blank"&gt;NOWORKTERM system option&lt;/A&gt;:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options noworkterm;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;An&amp;nbsp;easy way to copy SAS datasets and catalogs (perhaps you need work.formats, too?) manually from one library to another is to use the &lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/68089/HTML/default/viewer.htm#n1859ndcc11yv8n1sfu09tri03ch.htm" target="_blank"&gt;SAS Explorer&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As another alternative to SAS procedures, especially if you are familiar with the corresponding command of your operating system (copy, cp, ...), you can also let SAS submit this via an X command. As shown below (example for Windows), you don't need to know physical paths of libraries for this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;x "copy %sysfunc(pathname(work))\test*.sas7bdat C:\Temp";&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 26 Mar 2016 16:48:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copy-sas-dataset-from-work-library-to-permanent-library/m-p/259228#M50117</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-03-26T16:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Copy sas dataset from work library to permanent library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copy-sas-dataset-from-work-library-to-permanent-library/m-p/259817#M50321</link>
      <description>&lt;P&gt;Thanks Reeza, &amp;nbsp;data _null_ and &lt;A class="lia-link-navigation lia-page-link lia-user-name-link" id="link_8" style="color: rgb(0, 125, 195);" href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733" target="_self"&gt;&lt;SPAN class="login-bold"&gt;FreelanceReinha&lt;WBR /&gt;rd&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;. Appreciate all your help. Good learning in terms of user option. all solutions were very handy and what I was looking for. even used all of&amp;nbsp;them in different project and for different need. Thanks again for your help.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2016 17:51:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copy-sas-dataset-from-work-library-to-permanent-library/m-p/259817#M50321</guid>
      <dc:creator>nkm123</dc:creator>
      <dc:date>2016-03-29T17:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Copy sas dataset from work library to permanent library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copy-sas-dataset-from-work-library-to-permanent-library/m-p/259819#M50322</link>
      <description>&lt;P&gt;Thanks Reeza, &amp;nbsp;data _null_ and FreelanceReinhard&amp;nbsp;. Appreciate all your help. Good learning in terms of user option. all solutions were very handy and what I was looking for. even used all of&amp;nbsp;them in different project and for different need. Thanks again for your help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2016 17:52:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copy-sas-dataset-from-work-library-to-permanent-library/m-p/259819#M50322</guid>
      <dc:creator>nkm123</dc:creator>
      <dc:date>2016-03-29T17:52:34Z</dc:date>
    </item>
  </channel>
</rss>

