<?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: copying  files  from one  UNIX dir to another  from  within EG SAS 7.1 in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/copying-files-from-one-UNIX-dir-to-another-from-within-EG-SAS-7/m-p/586112#M75820</link>
    <description>&lt;P&gt;I believe you should use 'cp' command&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;x "cp /x/y/z/deals&amp;amp;FOLDERNAME..txt /xx/yy/zz" ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 04 Sep 2019 13:54:48 GMT</pubDate>
    <dc:creator>Jagadishkatam</dc:creator>
    <dc:date>2019-09-04T13:54:48Z</dc:date>
    <item>
      <title>copying  files  from one  UNIX dir to another  from  within EG SAS 7.1</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/copying-files-from-one-UNIX-dir-to-another-from-within-EG-SAS-7/m-p/586111#M75819</link>
      <description>&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;I see no errors in the logs but&amp;nbsp; the&amp;nbsp; file&amp;nbsp; just not copying&amp;nbsp; into the second&amp;nbsp; folder&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;Is this the right command?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;x&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;"copy /x/y/z/deals&amp;amp;FOLDERNAME..txt&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt; /xx/yy/zz/deals&amp;amp;FOLDERNAME..txt"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 13:47:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/copying-files-from-one-UNIX-dir-to-another-from-within-EG-SAS-7/m-p/586111#M75819</guid>
      <dc:creator>Tal</dc:creator>
      <dc:date>2019-09-04T13:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: copying  files  from one  UNIX dir to another  from  within EG SAS 7.1</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/copying-files-from-one-UNIX-dir-to-another-from-within-EG-SAS-7/m-p/586112#M75820</link>
      <description>&lt;P&gt;I believe you should use 'cp' command&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;x "cp /x/y/z/deals&amp;amp;FOLDERNAME..txt /xx/yy/zz" ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Sep 2019 13:54:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/copying-files-from-one-UNIX-dir-to-another-from-within-EG-SAS-7/m-p/586112#M75820</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2019-09-04T13:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: copying  files  from one  UNIX dir to another  from  within EG SAS 7.1</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/copying-files-from-one-UNIX-dir-to-another-from-within-EG-SAS-7/m-p/586116#M75821</link>
      <description>&lt;P&gt;Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 13:56:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/copying-files-from-one-UNIX-dir-to-another-from-within-EG-SAS-7/m-p/586116#M75821</guid>
      <dc:creator>Tal</dc:creator>
      <dc:date>2019-09-04T13:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: copying  files  from one  UNIX dir to another  from  within EG SAS 7.1</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/copying-files-from-one-UNIX-dir-to-another-from-within-EG-SAS-7/m-p/586123#M75822</link>
      <description>&lt;P&gt;If you use the X statement, you should check the automatic macro variable &amp;amp;sysrc afterwards to see if the command succeeded.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To make the responses from the command visible in SAS, use the filename pipe method:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename oscmd pipe "cp /x/y/z/deals&amp;amp;FOLDERNAME..txt /xx/yy/zz/deals&amp;amp;FOLDERNAME..txt 2&amp;gt;&amp;amp;1";

data responses;
length response $256;
infile oscmd;
input;
response = _infile_;
put _infile_;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This will keep the responses both in the dataset and the SAS log.&lt;/P&gt;
&lt;P&gt;The "2&amp;gt;&amp;amp;1" construct redirects error output into the pipe.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 14:09:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/copying-files-from-one-UNIX-dir-to-another-from-within-EG-SAS-7/m-p/586123#M75822</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-09-04T14:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: copying  files  from one  UNIX dir to another  from  within EG SAS 7.1</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/copying-files-from-one-UNIX-dir-to-another-from-within-EG-SAS-7/m-p/586391#M75828</link>
      <description>&lt;P&gt;Or try FCOPY() function .&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 12:05:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/copying-files-from-one-UNIX-dir-to-another-from-within-EG-SAS-7/m-p/586391#M75828</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-09-05T12:05:06Z</dc:date>
    </item>
  </channel>
</rss>

