<?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 Copying a sas program from one directory to other directory in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Copying-a-sas-program-from-one-directory-to-other-directory/m-p/760800#M240622</link>
    <description>I have a few sas program from a directory which needs to be copied and placed in another directory. I have also tried X statement but while copying the timestamp is getting changes. So how do I ensure that timestamp doesn't get changed while copying</description>
    <pubDate>Wed, 11 Aug 2021 03:34:52 GMT</pubDate>
    <dc:creator>Elwin1</dc:creator>
    <dc:date>2021-08-11T03:34:52Z</dc:date>
    <item>
      <title>Copying a sas program from one directory to other directory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copying-a-sas-program-from-one-directory-to-other-directory/m-p/760800#M240622</link>
      <description>I have a few sas program from a directory which needs to be copied and placed in another directory. I have also tried X statement but while copying the timestamp is getting changes. So how do I ensure that timestamp doesn't get changed while copying</description>
      <pubDate>Wed, 11 Aug 2021 03:34:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copying-a-sas-program-from-one-directory-to-other-directory/m-p/760800#M240622</guid>
      <dc:creator>Elwin1</dc:creator>
      <dc:date>2021-08-11T03:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: Copying a sas program from one directory to other directory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copying-a-sas-program-from-one-directory-to-other-directory/m-p/760804#M240625</link>
      <description>&lt;P&gt;You're using SAS to copy the program?&amp;nbsp; I wouldn't use SAS.&amp;nbsp; I would use an operating system command.&amp;nbsp; Operating system commands will actually copy.&amp;nbsp; SAS is creating a new program that is a copy of the original, and the timestamp will reflect the time that the new program was created.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need to use SAS to manage when the copies are made, you can use SYSTASK or the X command to launch OS level commands from within SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 04:09:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copying-a-sas-program-from-one-directory-to-other-directory/m-p/760804#M240625</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2021-08-11T04:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Copying a sas program from one directory to other directory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copying-a-sas-program-from-one-directory-to-other-directory/m-p/760807#M240628</link>
      <description>I did trying using the X statement but the timestamp is getting changed. So&lt;BR /&gt;how do I preserve the timestamp as well.?&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Aug 2021 04:34:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copying-a-sas-program-from-one-directory-to-other-directory/m-p/760807#M240628</guid>
      <dc:creator>Elwin1</dc:creator>
      <dc:date>2021-08-11T04:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Copying a sas program from one directory to other directory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copying-a-sas-program-from-one-directory-to-other-directory/m-p/760810#M240630</link>
      <description>&lt;P&gt;It's getting changed when using an X command?&amp;nbsp; That's unusual.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What operating system are you running under?&amp;nbsp; What command are you using?&amp;nbsp; Do the source and the target directories have the same operating system?&amp;nbsp; I've seen weird things happen if a UNIX directory is mapped to Windows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are the source and target directories in the same time zone?&amp;nbsp; For example my EG session is running in Pacific Time, but my SAS is running in Central Time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 04:59:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copying-a-sas-program-from-one-directory-to-other-directory/m-p/760810#M240630</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2021-08-11T04:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Copying a sas program from one directory to other directory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copying-a-sas-program-from-one-directory-to-other-directory/m-p/760817#M240636</link>
      <description>Thanks for you quick response. The target and the source has UNIX&lt;BR /&gt;environment&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Aug 2021 05:09:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copying-a-sas-program-from-one-directory-to-other-directory/m-p/760817#M240636</guid>
      <dc:creator>Elwin1</dc:creator>
      <dc:date>2021-08-11T05:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Copying a sas program from one directory to other directory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copying-a-sas-program-from-one-directory-to-other-directory/m-p/760818#M240637</link>
      <description>&lt;P&gt;And what command specifically are you using to execute the copy?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are there any peculiarities about either of these two UNIX environments?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In what way are the timestamps in error?&amp;nbsp; I assume that the copy has the date-time of when it was copied not the date-time of the original, is that correct?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 05:13:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copying-a-sas-program-from-one-directory-to-other-directory/m-p/760818#M240637</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2021-08-11T05:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Copying a sas program from one directory to other directory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copying-a-sas-program-from-one-directory-to-other-directory/m-p/760822#M240640</link>
      <description>Got it. Need to use cp -p (It preserves the timestamp).. Thanks&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Aug 2021 05:40:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copying-a-sas-program-from-one-directory-to-other-directory/m-p/760822#M240640</guid>
      <dc:creator>Elwin1</dc:creator>
      <dc:date>2021-08-11T05:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Copying a sas program from one directory to other directory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copying-a-sas-program-from-one-directory-to-other-directory/m-p/760827#M240641</link>
      <description>&lt;P&gt;UNIX cp (and, IIRC, Windows copy) will create a new file with a new timestamp, unless you use the -p option (preserve attributes). mv, OTOH, will keep as much of the attributes as possible (depending on who runs it and who owns the original file).&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 06:21:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copying-a-sas-program-from-one-directory-to-other-directory/m-p/760827#M240641</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-08-11T06:21:19Z</dc:date>
    </item>
  </channel>
</rss>

