<?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: Xcopy in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Xcopy/m-p/367448#M275368</link>
    <description>&lt;P&gt;You're passing a system command and need to find the relevant system option.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For XCOPY that appears to be /Y&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the Microsoft documentation, here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.microsoft.com/en-us/help/240268/copy,-xcopy,-and-move-overwrite-functionality-changes-in-windows" target="_blank"&gt;https://support.microsoft.com/en-us/help/240268/copy,-xcopy,-and-move-overwrite-functionality-changes-in-windows&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Jun 2017 17:21:17 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-06-15T17:21:17Z</dc:date>
    <item>
      <title>Xcopy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Xcopy/m-p/367413#M275362</link>
      <description>&lt;P&gt;I have to copy 14K files from one directory to another. when using the below code, the cmd window opens 14K times and this is interrupting from doing further work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. How to make it work with out interrupting the user?&lt;/P&gt;&lt;P&gt;2. If the files are already presnt in destination folder, either delete them or overwrite them. The following code popups cmd window to manually key in the response by the user.&lt;/P&gt;&lt;P&gt;How to achieve above two conditions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;options noxwait noxsync;&lt;BR /&gt;data _null_;&lt;BR /&gt;%do i=1 %to &amp;amp;count.;&lt;BR /&gt;%sysExec xcopy "&amp;amp;landing_zone.\&amp;amp;&amp;amp;memname&amp;amp;i" "&amp;amp;dest.\";&lt;BR /&gt;%end;&lt;BR /&gt;run;&lt;BR /&gt;proc printto;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2017 15:39:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Xcopy/m-p/367413#M275362</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2017-06-15T15:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Xcopy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Xcopy/m-p/367429#M275363</link>
      <description>&lt;P&gt;Have you tried specifying the XMIN Option?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2017 16:22:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Xcopy/m-p/367429#M275363</guid>
      <dc:creator>jdwaterman91</dc:creator>
      <dc:date>2017-06-15T16:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Xcopy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Xcopy/m-p/367439#M275364</link>
      <description>Can't you use /s and omit the looping?</description>
      <pubDate>Thu, 15 Jun 2017 16:55:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Xcopy/m-p/367439#M275364</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-06-15T16:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Xcopy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Xcopy/m-p/367441#M275365</link>
      <description>&lt;P&gt;No ,havent tried&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2017 17:01:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Xcopy/m-p/367441#M275365</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2017-06-15T17:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Xcopy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Xcopy/m-p/367442#M275366</link>
      <description>&lt;P&gt;never tried that.&lt;/P&gt;&lt;P&gt;Looping lets me choose only the files of interest. I'm not sure how /s works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if there are&lt;/P&gt;&lt;P&gt;abc.txt&lt;/P&gt;&lt;P&gt;pqr.txt&lt;/P&gt;&lt;P&gt;xyz.txt&lt;/P&gt;&lt;P&gt;and I want to choose only pqr.txt and xyz.txt based on some conditions, I will pass the two file names into a macro array and loop them to move to a new folder.&lt;/P&gt;&lt;P&gt;Imagine i had to move 14k files out of 50k&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2017 17:04:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Xcopy/m-p/367442#M275366</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2017-06-15T17:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Xcopy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Xcopy/m-p/367448#M275368</link>
      <description>&lt;P&gt;You're passing a system command and need to find the relevant system option.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For XCOPY that appears to be /Y&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the Microsoft documentation, here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.microsoft.com/en-us/help/240268/copy,-xcopy,-and-move-overwrite-functionality-changes-in-windows" target="_blank"&gt;https://support.microsoft.com/en-us/help/240268/copy,-xcopy,-and-move-overwrite-functionality-changes-in-windows&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2017 17:21:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Xcopy/m-p/367448#M275368</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-06-15T17:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Xcopy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Xcopy/m-p/367890#M275369</link>
      <description>When the number of file sizes increases, I'm getting an error.&lt;BR /&gt;Xcopy.exe Application error popup.</description>
      <pubDate>Fri, 16 Jun 2017 21:15:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Xcopy/m-p/367890#M275369</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2017-06-16T21:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Xcopy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Xcopy/m-p/367894#M275370</link>
      <description>&lt;P&gt;Like I mentioned you're using Windows command, SAS is just passing it to the system. Figure out what works in the system and that's a Windows question, not a SAS question.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then incorporate that solution here.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2017 21:37:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Xcopy/m-p/367894#M275370</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-06-16T21:37:48Z</dc:date>
    </item>
  </channel>
</rss>

