<?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 can i copy the exactly same data from previous saved sas data set and rename it and save? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-can-i-copy-the-exactly-same-data-from-previous-saved-sas/m-p/565467#M158773</link>
    <description>&lt;P&gt;You need to use the libname-statment for each library you want to use. Then use something like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data pcy2017.pcy_201707;
  set pl.pola_201707;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;if the dataset is small. For larger datasets using proc datasets with copy + change is recommended, see docs for examples.&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jun 2019 06:05:17 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2019-06-12T06:05:17Z</dc:date>
    <item>
      <title>How can i copy the exactly same data from previous saved sas data set and rename it and save?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-i-copy-the-exactly-same-data-from-previous-saved-sas/m-p/565466#M158772</link>
      <description>&lt;P&gt;&lt;FONT face="andale mono,times"&gt;Hi, I have a sas data set file which is pola_201707 which is save it with&amp;nbsp;my previous sas program&amp;nbsp;, now I want to read it in a new sas program and then get copy the same whole sas data set but with another name&amp;nbsp; which is pcy_201707 and save it as another library name pcy2017&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;Both have the same data but just the name and the library name is different. How can I do with this?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;Below is my code to read my previous saved sas data set pola_clm_mth_201707.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;libname&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; pl &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"C:\Data\DBF"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; pl.pola_201707;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; pl.pola_201707;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 06:07:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-i-copy-the-exactly-same-data-from-previous-saved-sas/m-p/565466#M158772</guid>
      <dc:creator>Kayla_Tan222</dc:creator>
      <dc:date>2019-06-12T06:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: How can i copy the exactly same data from previous saved sas data set and rename it and save?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-i-copy-the-exactly-same-data-from-previous-saved-sas/m-p/565467#M158773</link>
      <description>&lt;P&gt;You need to use the libname-statment for each library you want to use. Then use something like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data pcy2017.pcy_201707;
  set pl.pola_201707;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;if the dataset is small. For larger datasets using proc datasets with copy + change is recommended, see docs for examples.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 06:05:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-i-copy-the-exactly-same-data-from-previous-saved-sas/m-p/565467#M158773</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2019-06-12T06:05:17Z</dc:date>
    </item>
  </channel>
</rss>

