<?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: PROC DATASETS copy inside the same library in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-DATASETS-copy-inside-the-same-library/m-p/164091#M42570</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your table names are suffixed with date in that nice yyyymmdd format then you can just take the maximum value of the table name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; base_20140301 base_20140308 base_20140315 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; x=&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;sql&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;noprint&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;select&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; max(memname) &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;into&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; :base separated &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;by&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;' '&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; dictionary.members&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;where&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; libname = &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'WORK'&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; memname like &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'BASE_%'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%put&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; Last BASE table name is &amp;amp;base ;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Apr 2014 15:11:15 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2014-04-02T15:11:15Z</dc:date>
    <item>
      <title>PROC DATASETS copy inside the same library</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-DATASETS-copy-inside-the-same-library/m-p/164079#M42558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;I couldn't find an easy and efficient way in SAS to copy one dataset to another inside the same library.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;# 3 below seems best to me, but it’s not obvious, and I couldn't find it explicitly documented anywhere.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Maybe there’s an easier way, so please comment.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;I can think of 4 ways to copy one dataset to another inside the same library:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Data step -- very easy, the first thing everyone learns, but it's kind of slow and wastes resources &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;The X command -- using the operating system, but that's not really SAS&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;One PROC DATASETS using an APPEND statement -- appending to a nonexistent dataset (deleting the destination dataset before appending)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Three PROC DATASETS -- first to COPY to a different library, then CHANGE the name of the new dataset, then COPY to the original library&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Any others?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;copy &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Example of # 3 (the destination dataset dest_ds needs to be empty or nonexistent, so I'm deleting it)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: #ECE9D8; font-size: 10.0pt; font-family: 'Courier New';"&gt;proc&lt;SPAN style="color: #000000; font-family: 'Courier New'; background-color: #ece9d8;"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;STRONG style="color: navy; background: #ECE9D8; font-size: 10.0pt; font-family: 'Courier New';"&gt;datasets&lt;SPAN style="color: #000000; font-family: 'Courier New'; background-color: #ece9d8;"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: #ECE9D8;"&gt;nolist&lt;SPAN style="color: #000000; font-family: 'Courier New'; background-color: #ece9d8;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: #ECE9D8;"&gt;lib&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: #ECE9D8;"&gt;=MyLib;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: #ECE9D8;"&gt;delete&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: #ECE9D8;"&gt; dest_ds;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: #ECE9D8;"&gt;append&lt;SPAN style="color: #000000; font-family: 'Courier New'; background-color: #ece9d8;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: #ECE9D8;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: #ECE9D8;"&gt; = source_ds &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000000; font-family: 'Courier New'; background-color: #ece9d8;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'Courier New'; background-color: #ece9d8;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'Courier New'; background-color: #ece9d8;"&gt; &lt;SPAN style="color: #000000; font-family: 'Courier New'; background-color: #ece9d8;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: #ECE9D8;"&gt;out&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: #ECE9D8;"&gt;&amp;nbsp; = dest_ds&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: #ECE9D8; font-size: 10.0pt; font-family: 'Courier New';"&gt;quit&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: #ECE9D8;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 03:09:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-DATASETS-copy-inside-the-same-library/m-p/164079#M42558</guid>
      <dc:creator>agoldma</dc:creator>
      <dc:date>2014-04-02T03:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: PROC DATASETS copy inside the same library</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-DATASETS-copy-inside-the-same-library/m-p/164080#M42559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;#2 is the best option, hands down. Everything else is crushing peanuts with an elephant's hoof, IMO.&lt;/P&gt;&lt;P&gt;If you want to do it inside SAS, #1 is preferred. A simple "data xxx; set yyy; run;" will not be slower than #3, because it will be simply limited by I/O bandwidth.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hint: Copying inside the same library will usually be slower than copying to another one, because you use the same HW for reading and writing. Different libs _may_ be located on different disks, giving you more aggregate bandwidth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 05:35:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-DATASETS-copy-inside-the-same-library/m-p/164080#M42559</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-04-02T05:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: PROC DATASETS copy inside the same library</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-DATASETS-copy-inside-the-same-library/m-p/164081#M42560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I would disagree with that.&amp;nbsp; #1 would be the better option principally because there is no error checking (unless you program it yourself) done, and generally the feedback from the operation is not looked at.&amp;nbsp; You wont notice so much with copy, however if it fails (file not found, dir not exist, no permissions etc.) then you may find processes further down the line are using old data.&amp;nbsp; Its even more dangerous with delete commands as it can default in other areas, or cause other unexpected problems.&amp;nbsp; If you absolutely have to use DOS to move/copy/delete files I would suggest either writing some QC code around to check existence of all items and post process messages coming back etc. or alternatively use an app or code one yourself outside SAS.&amp;nbsp; For anything else use the datastep as this will tell you any errors directly in your log and not continue to operate until you fix it.&amp;nbsp; #3, #4 don't seem particularly intuitive or advantageous to my mind.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 08:16:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-DATASETS-copy-inside-the-same-library/m-p/164081#M42560</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-04-02T08:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: PROC DATASETS copy inside the same library</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-DATASETS-copy-inside-the-same-library/m-p/164082#M42561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To check for successful execution, use the system() function and check the return code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 08:49:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-DATASETS-copy-inside-the-same-library/m-p/164082#M42561</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-04-02T08:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: PROC DATASETS copy inside the same library</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-DATASETS-copy-inside-the-same-library/m-p/164083#M42562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rw9, the #1 option is a SAS datastep using the PDV. Sequential processing with a lot of not needed overhead. &lt;/P&gt;&lt;P&gt;I agree with Kurt as copying at OS level is not having all that SAS-overhead. In a smarter OS design this kind of copying could be propagated as a remote command executes on the SAN directly. In that case you will not even notice any IO. The best of IO for performance is no IO at all. And trust the binary copy of an OS as when you cannot trust that, dump it all as it rubbish. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you need to do it with SAS statements?&lt;/P&gt;&lt;P&gt;think on using Proc SQL creating a new table with all fields. That procedure is multithreaded and as result the order of records can change.&lt;/P&gt;&lt;P&gt;But when that order is not relevant, no problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brings me back to your original question, why should you make an additional copy of an existing dataset?&lt;/P&gt;&lt;P&gt;Is it for archiving a history.&amp;nbsp;&amp;nbsp; you have aging (proc datasets): &lt;A href="http://support.sas.com/documentation/cdl/en/proc/65145/HTML/default/viewer.htm#p0bq1dl5fzjs6un144izdibzxd2w.htm" title="http://support.sas.com/documentation/cdl/en/proc/65145/HTML/default/viewer.htm#p0bq1dl5fzjs6un144izdibzxd2w.htm"&gt;Base SAS(R) 9.3 Procedures Guide, Second Edition&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (little more as changing names)&lt;/P&gt;&lt;P&gt;Is it for maintaining a series of datasets, you have gdg's: &lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/65287/HTML/default/viewer.htm#p0apy93gsj2bzmn1awyqfe7kklkp.htm" title="http://support.sas.com/documentation/cdl/en/lrcon/65287/HTML/default/viewer.htm#p0apy93gsj2bzmn1awyqfe7kklkp.htm"&gt;SAS(R) 9.3 Language Reference: Concepts, Second Edition&lt;/A&gt; (every time a new version is created the old one is kept)&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;with gdg's you are making a copy and rename as part of the concept&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 09:00:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-DATASETS-copy-inside-the-same-library/m-p/164083#M42562</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-04-02T09:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: PROC DATASETS copy inside the same library</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-DATASETS-copy-inside-the-same-library/m-p/164084#M42563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;#3 should be faster than #1 because APPEND will use block reads and writes.&amp;nbsp; Using PROC DELETE and PROC APPEND may be faster than PROC DATASETS for the reason that PROC DELETE was resurrected.&lt;/P&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;16&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc datasets library=work;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;17&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; delete abc;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;NOTE: &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; background-color: #ffffff;"&gt;The&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; file WORK.ABC (memtype=DATA) was not found, but appears on a DELETE &lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;statement.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;18&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; append base=abc data=zzz;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;19&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;NOTE: &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; background-color: #ffffff;"&gt;Appending&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; WORK.ZZZ to WORK&lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;.A&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;BC.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;NOTE: BASE data set does not &lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;exist.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; DATA file is being copied to BASE &lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;file.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;INFO: Engine&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; background-color: #ffffff;"&gt;'s block-read method is in use.&lt;BR /&gt;INFO: Engine's block-write&amp;nbsp; method is in &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; background-color: #ffffff;"&gt;use.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;NOTE: There were &lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; observations read from the data set WORK&lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;.Z&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;ZZ.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;NOTE: The data set WORK.ABC has &lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; observations and &lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;6&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;variables.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;20&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; quit;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;NOTE: &lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;PROCEDURE&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;DATASETS&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; used (Total process time):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;0.04&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; seconds&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;0.03&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; seconds&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 09:57:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-DATASETS-copy-inside-the-same-library/m-p/164084#M42563</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2014-04-02T09:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: PROC DATASETS copy inside the same library</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-DATASETS-copy-inside-the-same-library/m-p/164085#M42564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Thank you for all of these responses.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;I'm surprised to see how many people prefer #1 -- the simple data step.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Jaap asked a good question: why would anyone (in one's right mind) want to copy a dataset inside the same library?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;The simple answer is because this is what some people are used to doing -- those people whose first operating system was Windows. I often make a simple-default copy of a file in the same folder, then rename it to a new name, and proceed to modify the new file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;In my current project I'm doing the same thing automatically (automating waste).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;I'm downloading many monthly datasets into a folder/library with a date in their names, but I want to use only the most recent dataset in my program, so I'm copying the most recent dataset to another dataset (in the same folder) without the date in the name. In my program, I'm using the most recent dataset -- the one without the date in the name.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Jaap correctly suggested that this is a job for a Generational Data Group, so I really need to look into that. Maybe that's why I'm having difficulties -- because I should be using a GDG.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 13:36:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-DATASETS-copy-inside-the-same-library/m-p/164085#M42564</guid>
      <dc:creator>agoldma</dc:creator>
      <dc:date>2014-04-02T13:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: PROC DATASETS copy inside the same library</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-DATASETS-copy-inside-the-same-library/m-p/164086#M42565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not just set a macro variable to the name of the dataset and avoid copying it at all?&lt;/P&gt;&lt;P&gt;You can automate the detection of which is the most recent by using the date embedded in the member name or by using other metadata such as MODATE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 14:29:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-DATASETS-copy-inside-the-same-library/m-p/164086#M42565</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-04-02T14:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: PROC DATASETS copy inside the same library</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-DATASETS-copy-inside-the-same-library/m-p/164087#M42566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;I'm using several macro variables, but I can't use that specific one that Tom suggested because I don't know which date is the most recent. Instead of saying "use the file with the extension _20140402", I want to say "use the most recent file" -- which is what I think the GDG does... I think a zero in parentheses (0) refers to the most recent member of the GDG. I need to read that article that Jaap suggested.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 14:47:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-DATASETS-copy-inside-the-same-library/m-p/164087#M42566</guid>
      <dc:creator>agoldma</dc:creator>
      <dc:date>2014-04-02T14:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: PROC DATASETS copy inside the same library</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-DATASETS-copy-inside-the-same-library/m-p/164088#M42567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But you can quickly scan all the file names and determine which is the latest one and then use that file, especially easy if you have an extension with the date as above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 14:50:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-DATASETS-copy-inside-the-same-library/m-p/164088#M42567</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-04-02T14:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: PROC DATASETS copy inside the same library</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-DATASETS-copy-inside-the-same-library/m-p/164089#M42568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can query dictionary.tables and find tables (datasets) with either the latest creation date or modification date within any specified library.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 15:00:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-DATASETS-copy-inside-the-same-library/m-p/164089#M42568</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-04-02T15:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: PROC DATASETS copy inside the same library</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-DATASETS-copy-inside-the-same-library/m-p/164090#M42569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;What Reeza and ballardw sugest would work, and I might do that if the GDG organization doesn't work. I'm currently leaning toward the GDGs because it seems like the more direct option -- saying "use the most recent dataset" instead of first finding the name of the most recent dataset, saving the name of that dataset in a macro variable, and then using the dataset with that name.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 15:10:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-DATASETS-copy-inside-the-same-library/m-p/164090#M42569</guid>
      <dc:creator>agoldma</dc:creator>
      <dc:date>2014-04-02T15:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: PROC DATASETS copy inside the same library</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-DATASETS-copy-inside-the-same-library/m-p/164091#M42570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your table names are suffixed with date in that nice yyyymmdd format then you can just take the maximum value of the table name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; base_20140301 base_20140308 base_20140315 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; x=&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;sql&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;noprint&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;select&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; max(memname) &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;into&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; :base separated &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;by&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;' '&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; dictionary.members&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;where&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; libname = &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'WORK'&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; memname like &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'BASE_%'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%put&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; Last BASE table name is &amp;amp;base ;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 15:11:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-DATASETS-copy-inside-the-same-library/m-p/164091#M42570</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-04-02T15:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: PROC DATASETS copy inside the same library</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-DATASETS-copy-inside-the-same-library/m-p/164092#M42571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;wow what is this suddenly a living thread. A lot more of good suggestions. &lt;BR /&gt;The options:&lt;/P&gt;&lt;P&gt;1- GDG and Aging are at their best when you would need the moving content (like moving average)&lt;/P&gt;&lt;P&gt;&amp;nbsp; eg: the last 6 weeks processes&amp;nbsp; (one dataset every week),&amp;nbsp; the last 30 days etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; As you can combine that period of available datasets and there is no need to design an adding / delete with dates.&lt;/P&gt;&lt;P&gt;2- using a macro-var like Tom's proposed moddat is an ideal one when&lt;/P&gt;&lt;P&gt;&amp;nbsp; a/ you can predict/validate the name.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Eg: Every workingday coming in one dataset. You can increment the expected one with SAS-date processing setting up the macro&lt;/P&gt;&lt;P&gt;&amp;nbsp; b/ the naming convention is data related normally the system-date. I would prefer a simdate setting so you can test with time-travelling&lt;/P&gt;&lt;P&gt;&amp;nbsp; That was the years of milo-testing when having common implemented that. But when you have testdata to be repeated it also very usefull.&amp;nbsp; &lt;/P&gt;&lt;P&gt;3- processing the last date available as ballardw had pointed&lt;/P&gt;&lt;P&gt;&amp;nbsp; This will work when the incoming datasets are SAS-datasets.&amp;nbsp; (transferred binary or saved directly)&lt;/P&gt;&lt;P&gt;&amp;nbsp; But I think the creation dates are being set by the sender not necessary (last update done) as the date naming as the dataset&lt;/P&gt;&lt;P&gt;4- Data-step processing for *.txt files containing dates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Often associated with first making a directory listing containing dates. (reeza)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the feeling getting some sense of the requirements and logic the wanted approach is more like option 2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 15:40:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-DATASETS-copy-inside-the-same-library/m-p/164092#M42571</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-04-02T15:40:03Z</dc:date>
    </item>
  </channel>
</rss>

