<?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: Copy/move external file,doesn't work. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Copy-move-external-file-doesn-t-work/m-p/134197#M295502</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello. Try this and check the values of rc:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data rc;&lt;/P&gt;&lt;P&gt; rc=system("&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;xcopy &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/thread/45844" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0e66ba; background-color: #ffffff;"&gt;\\133.9.206.139\bdp\43430710\Test\a.xls&lt;/A&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/thread/45844" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0e66ba; background-color: #ffffff;"&gt;\\133.9.206.139\bdp\43430710\Test\test1&lt;/A&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;"&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt; rc=system("move&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/thread/45844" style="color: #0e66ba; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;\\133.9.206.139\bdp\43430710\Test\a.xls&lt;/A&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/thread/45844" style="color: #0e66ba; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;\\133.9.206.139\bdp\43430710\Test\test1&lt;/A&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;"&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt; rc=system("&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;copy &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/thread/45844" style="color: #0e66ba; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;\\133.9.206.139\bdp\43430710\Test\a.xls&lt;/A&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/thread/45844" style="color: #0e66ba; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;\\133.9.206.139\bdp\43430710\Test\test1&lt;/A&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;"&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you get something that works you can try it again in %sysExec, or keep the above with data _NULL_ instead of data rc (although it can be quite useful to have a work dataset where you can check the return codes).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have a drive mapping for &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/thread/45844" style="color: #0e66ba; text-decoration: underline; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;\\133.9.206.139\bdp &lt;/A&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; then try using that instead.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 May 2013 08:12:51 GMT</pubDate>
    <dc:creator>TimArm</dc:creator>
    <dc:date>2013-05-15T08:12:51Z</dc:date>
    <item>
      <title>Copy/move external file,doesn't work.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copy-move-external-file-doesn-t-work/m-p/134195#M295500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3 sentences used. only the first worked, but no error message occurred to the later 2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; can anyone give a hand?Thx.&lt;/P&gt;&lt;P&gt;%sysExec&amp;nbsp; xcopy "&lt;A href="https://communities.sas.com/"&gt;\\133.9.206.139\bdp\43430710\Test\a.xls&lt;/A&gt;" "&lt;A href="https://communities.sas.com/"&gt;\\133.9.206.139\bdp\43430710\Test\test1&lt;/A&gt;" ;&lt;/P&gt;&lt;P&gt;%sysExec&amp;nbsp; move "&lt;A href="https://communities.sas.com/"&gt;\\133.9.206.139\bdp\43430710\Test\a.xls&lt;/A&gt;" "&lt;A href="https://communities.sas.com/"&gt;\\133.9.206.139\bdp\43430710\Test\test1&lt;/A&gt;" ;&lt;/P&gt;&lt;P&gt;%sysExec&amp;nbsp; copy "&lt;A href="https://communities.sas.com/"&gt;\\133.9.206.139\bdp\43430710\Test\a.xls&lt;/A&gt;" "&lt;A href="https://communities.sas.com/"&gt;\\133.9.206.139\bdp\43430710\Test\test1&lt;/A&gt;" ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 06:49:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copy-move-external-file-doesn-t-work/m-p/134195#M295500</guid>
      <dc:creator>bbb_NG</dc:creator>
      <dc:date>2013-05-15T06:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Copy/move external file,doesn't work.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copy-move-external-file-doesn-t-work/m-p/134196#M295501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried these outside SAS?&lt;/P&gt;&lt;P&gt;OS rc is not returned to using this method. To catch a OS return code, try FILENAME PIPE instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 07:53:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copy-move-external-file-doesn-t-work/m-p/134196#M295501</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2013-05-15T07:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Copy/move external file,doesn't work.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copy-move-external-file-doesn-t-work/m-p/134197#M295502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello. Try this and check the values of rc:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data rc;&lt;/P&gt;&lt;P&gt; rc=system("&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;xcopy &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/thread/45844" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0e66ba; background-color: #ffffff;"&gt;\\133.9.206.139\bdp\43430710\Test\a.xls&lt;/A&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/thread/45844" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0e66ba; background-color: #ffffff;"&gt;\\133.9.206.139\bdp\43430710\Test\test1&lt;/A&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;"&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt; rc=system("move&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/thread/45844" style="color: #0e66ba; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;\\133.9.206.139\bdp\43430710\Test\a.xls&lt;/A&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/thread/45844" style="color: #0e66ba; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;\\133.9.206.139\bdp\43430710\Test\test1&lt;/A&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;"&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt; rc=system("&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;copy &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/thread/45844" style="color: #0e66ba; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;\\133.9.206.139\bdp\43430710\Test\a.xls&lt;/A&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/thread/45844" style="color: #0e66ba; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;\\133.9.206.139\bdp\43430710\Test\test1&lt;/A&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;"&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you get something that works you can try it again in %sysExec, or keep the above with data _NULL_ instead of data rc (although it can be quite useful to have a work dataset where you can check the return codes).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have a drive mapping for &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/thread/45844" style="color: #0e66ba; text-decoration: underline; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;\\133.9.206.139\bdp &lt;/A&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; then try using that instead.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 08:12:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copy-move-external-file-doesn-t-work/m-p/134197#M295502</guid>
      <dc:creator>TimArm</dc:creator>
      <dc:date>2013-05-15T08:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Copy/move external file,doesn't work.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copy-move-external-file-doesn-t-work/m-p/134198#M295503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="1576" data-externalid="" data-presence="null" data-userid="119192" data-username="LinusH" href="https://communities.sas.com/people/LinusH" id="jive-11919269160955347276803"&gt;LinusH&lt;/A&gt; ,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thx for looking into it ,I've tried in ms-dos mode. OK&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 03:11:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copy-move-external-file-doesn-t-work/m-p/134198#M295503</guid>
      <dc:creator>bbb_NG</dc:creator>
      <dc:date>2013-05-16T03:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Copy/move external file,doesn't work.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copy-move-external-file-doesn-t-work/m-p/134199#M295504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="-1" data-externalid="" data-presence="null" data-userid="810763" data-username="TimArm" href="https://communities.sas.com/people/TimArm" id="jive-81076369161233660989803"&gt;TimArm&lt;/A&gt; ,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thx for&amp;nbsp; looking into it , the xcopy returned with value 0, the other 2 returned with "2"&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 03:13:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copy-move-external-file-doesn-t-work/m-p/134199#M295504</guid>
      <dc:creator>bbb_NG</dc:creator>
      <dc:date>2013-05-16T03:13:14Z</dc:date>
    </item>
  </channel>
</rss>

