<?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: When copy data sets from one directory to another, keep the last modified date in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/When-copy-data-sets-from-one-directory-to-another-keep-the-last/m-p/552983#M153746</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;,&amp;nbsp;wouldn't this modify the created date of the data set only?&lt;/P&gt;</description>
    <pubDate>Mon, 22 Apr 2019 18:42:55 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2019-04-22T18:42:55Z</dc:date>
    <item>
      <title>When copy data sets from one directory to another, keep the last modified date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/When-copy-data-sets-from-one-directory-to-another-keep-the-last/m-p/552692#M153645</link>
      <description>&lt;P&gt;When copy data sets from directory RDATA to EDATA, the date have been modified as current date, how I can I keep it as last modified date?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;proc datasets library=rdata;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; copy out=edata datecopy CONSTRAINT=yes index=yes;&lt;BR /&gt;run;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Apr 2019 12:06:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/When-copy-data-sets-from-one-directory-to-another-keep-the-last/m-p/552692#M153645</guid>
      <dc:creator>Chunling</dc:creator>
      <dc:date>2019-04-21T12:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: When copy data sets from one directory to another, keep the last modified date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/When-copy-data-sets-from-one-directory-to-another-keep-the-last/m-p/552698#M153651</link>
      <description>&lt;P&gt;This can not be done with &lt;A href="https://sasnrd.com/proc-datasets-example-sas/" target="_self"&gt;PROC DATASETS&lt;/A&gt; when the data set you copy is indexed. When you use the DATECOPY Option, the modified and created date are preserved unless some processing on the data set is necessary which it is when the data set is indexed because the procedure has to rebuld the data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=p1juxu16zautpxn1dikxecc3kn7w.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#p1v5gudnag06ptn177lwkes4dll4" target="_self"&gt;Read the Documentation for the COPY Statement for more information&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure if there is a workaround, but I don't think it is possible.&lt;/P&gt;</description>
      <pubDate>Sat, 07 Nov 2020 10:27:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/When-copy-data-sets-from-one-directory-to-another-keep-the-last/m-p/552698#M153651</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2020-11-07T10:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: When copy data sets from one directory to another, keep the last modified date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/When-copy-data-sets-from-one-directory-to-another-keep-the-last/m-p/552703#M153656</link>
      <description>&lt;P&gt;have you tried to use windows explore to do the copy paste?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Apr 2019 15:15:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/When-copy-data-sets-from-one-directory-to-another-keep-the-last/m-p/552703#M153656</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2019-04-21T15:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: When copy data sets from one directory to another, keep the last modified date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/When-copy-data-sets-from-one-directory-to-another-keep-the-last/m-p/552820#M153711</link>
      <description>Thank you very much for your help, even I use index=No, the date also as current date, would you please help to write the code? as I try it many times and always failing, thank you very much!</description>
      <pubDate>Mon, 22 Apr 2019 13:09:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/When-copy-data-sets-from-one-directory-to-another-keep-the-last/m-p/552820#M153711</guid>
      <dc:creator>Chunling</dc:creator>
      <dc:date>2019-04-22T13:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: When copy data sets from one directory to another, keep the last modified date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/When-copy-data-sets-from-one-directory-to-another-keep-the-last/m-p/552839#M153718</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;

libname x v9 'c:\temp\';
/*Get the modify datetime of TEST*/
%let dsid=%sysfunc(open(x.test));
%let m_date=%sysfunc(attrn(&amp;amp;dsid,modte),datetime.);
%let dsid=%sysfunc(close(&amp;amp;dsid));
%put &amp;amp;m_date;

proc copy in=x out=work;
select test;
run;

proc datasets library=work nolist nodetails;
   /*change WORK.TEST 's modify time*/
   modify test/dtc="&amp;amp;m_date"dt;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 22 Apr 2019 14:05:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/When-copy-data-sets-from-one-directory-to-another-keep-the-last/m-p/552839#M153718</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-04-22T14:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: When copy data sets from one directory to another, keep the last modified date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/When-copy-data-sets-from-one-directory-to-another-keep-the-last/m-p/552983#M153746</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;,&amp;nbsp;wouldn't this modify the created date of the data set only?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2019 18:42:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/When-copy-data-sets-from-one-directory-to-another-keep-the-last/m-p/552983#M153746</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-04-22T18:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: When copy data sets from one directory to another, keep the last modified date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/When-copy-data-sets-from-one-directory-to-another-keep-the-last/m-p/553189#M153800</link>
      <description>&lt;P&gt;Yeah. You are right. I thought it would be modified date.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 12:32:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/When-copy-data-sets-from-one-directory-to-another-keep-the-last/m-p/553189#M153800</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-04-23T12:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: When copy data sets from one directory to another, keep the last modified date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/When-copy-data-sets-from-one-directory-to-another-keep-the-last/m-p/554460#M154239</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp; Thank you very much, I haven't test in SAS server as I can't login at home today&lt;/P&gt;</description>
      <pubDate>Sat, 27 Apr 2019 08:49:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/When-copy-data-sets-from-one-directory-to-another-keep-the-last/m-p/554460#M154239</guid>
      <dc:creator>Chunling</dc:creator>
      <dc:date>2019-04-27T08:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: When copy data sets from one directory to another, keep the last modified date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/When-copy-data-sets-from-one-directory-to-another-keep-the-last/m-p/554461#M154240</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/122002"&gt;@VDD&lt;/a&gt;Would you please help to provide an example? as I am not familiar with that, thank you very much!&lt;/P&gt;</description>
      <pubDate>Sat, 27 Apr 2019 08:50:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/When-copy-data-sets-from-one-directory-to-another-keep-the-last/m-p/554461#M154240</guid>
      <dc:creator>Chunling</dc:creator>
      <dc:date>2019-04-27T08:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: When copy data sets from one directory to another, keep the last modified date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/When-copy-data-sets-from-one-directory-to-another-keep-the-last/m-p/556700#M155105</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;Hello Ksharp, I have try to edit as your guide, but it also doesn't work as one error, even though add the&amp;nbsp;&lt;FONT&gt;&amp;nbsp;outrep=WINDOWS_32&lt;/FONT&gt; after libname, would you please help guide further? thank you very much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;ERROR: File EDATA.AE cannot be updated because its encoding does not match the session encoding or the file is in&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a format native to another host, such as WINDOWS_32.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 09:07:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/When-copy-data-sets-from-one-directory-to-another-keep-the-last/m-p/556700#M155105</guid>
      <dc:creator>Chunling</dc:creator>
      <dc:date>2019-05-07T09:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: When copy data sets from one directory to another, keep the last modified date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/When-copy-data-sets-from-one-directory-to-another-keep-the-last/m-p/556754#M155119</link>
      <description>&lt;P&gt;My code can't change modify time of file, so ignore my post.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 12:37:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/When-copy-data-sets-from-one-directory-to-another-keep-the-last/m-p/556754#M155119</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-05-07T12:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: When copy data sets from one directory to another, keep the last modified date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/When-copy-data-sets-from-one-directory-to-another-keep-the-last/m-p/556768#M155122</link>
      <description>&lt;P&gt;Could you try to use FCOPY() function in data step&amp;nbsp; to copy sas tables ?&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 13:24:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/When-copy-data-sets-from-one-directory-to-another-keep-the-last/m-p/556768#M155122</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-05-07T13:24:35Z</dc:date>
    </item>
  </channel>
</rss>

