<?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 File copy script in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/File-copy-script/m-p/209667#M15719</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My &lt;STRONG&gt;goal&lt;/STRONG&gt; is to have a script that can&lt;/P&gt;&lt;P&gt;- Check the date a file has been created in a network folder 'X'&lt;/P&gt;&lt;P&gt;- If it is the latest file then copy it over to another network folder 'Y'. Latest file can be compared using system dates or checking file names in folders 'X' and 'Y'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I have:&lt;/P&gt;&lt;P&gt;I have EG 4.2 installed on a server that I am connecting via a UNIX account. In terms of permissions I can import and export files from my computer.&lt;/P&gt;&lt;P&gt;Question:&lt;/P&gt;&lt;P&gt;- Does SAS EG support such a task?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have looked online and there are non sas scripts and softwares that do that but was wondering if SAS can do that for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice bank holiday weekend.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Aug 2015 14:45:08 GMT</pubDate>
    <dc:creator>Jane7476</dc:creator>
    <dc:date>2015-08-28T14:45:08Z</dc:date>
    <item>
      <title>File copy script</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/File-copy-script/m-p/209667#M15719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My &lt;STRONG&gt;goal&lt;/STRONG&gt; is to have a script that can&lt;/P&gt;&lt;P&gt;- Check the date a file has been created in a network folder 'X'&lt;/P&gt;&lt;P&gt;- If it is the latest file then copy it over to another network folder 'Y'. Latest file can be compared using system dates or checking file names in folders 'X' and 'Y'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I have:&lt;/P&gt;&lt;P&gt;I have EG 4.2 installed on a server that I am connecting via a UNIX account. In terms of permissions I can import and export files from my computer.&lt;/P&gt;&lt;P&gt;Question:&lt;/P&gt;&lt;P&gt;- Does SAS EG support such a task?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have looked online and there are non sas scripts and softwares that do that but was wondering if SAS can do that for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice bank holiday weekend.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 14:45:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/File-copy-script/m-p/209667#M15719</guid>
      <dc:creator>Jane7476</dc:creator>
      <dc:date>2015-08-28T14:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: File copy script</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/File-copy-script/m-p/209668#M15720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Depends on your settings, if you're allowed to pass system commands through it's relatively easy.&lt;/P&gt;&lt;P&gt;This is a better job for a system commands but can be done via SAS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steps&lt;/P&gt;&lt;P&gt;1. Process to list all files and determine the latest file.&amp;nbsp; You can find scripts for that all across the forums and web.&lt;/P&gt;&lt;P&gt;2. You can copy using FCOPY or X Copy.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="113419" __jive_macro_name="message" class="jive_macro jive_macro_message" href="https://communities.sas.com/" modifiedtitle="true" title="List out all files in all sub directories"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sascommunity.org/wiki/Making_Lists#Make_List_of_Folders" title="http://www.sascommunity.org/wiki/Making_Lists#Make_List_of_Folders"&gt;Making Lists - sasCommunity&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 15:09:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/File-copy-script/m-p/209668#M15720</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-08-28T15:09:56Z</dc:date>
    </item>
  </channel>
</rss>

