<?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: SAS query in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-move-disk-files-around/m-p/445418#M111611</link>
    <description>&lt;P&gt;The simplest method is to use the OS commands, for example on windows:&lt;/P&gt;
&lt;PRE&gt;data _null_;
  x 'copy "d:/in/*.txt" "d:/out"';
run;&lt;/PRE&gt;
&lt;P&gt;You could also use a datastep to read in the files (infile) and write them out again (file).&lt;/P&gt;
&lt;P&gt;You could use fcopy function.&lt;/P&gt;
&lt;P&gt;Try having a go and coming back with questions.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Mar 2018 09:12:45 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2018-03-14T09:12:45Z</dc:date>
    <item>
      <title>How to move disk files around</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-move-disk-files-around/m-p/445415#M111609</link>
      <description>&lt;P&gt;I have multiple txt files in dir D:\in and would like to transfer all the txt files to dir D:\out&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there SAS command can copy the mutiple txt files from one directory to another?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 09:13:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-move-disk-files-around/m-p/445415#M111609</guid>
      <dc:creator>scb</dc:creator>
      <dc:date>2018-03-14T09:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: SAS query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-move-disk-files-around/m-p/445418#M111611</link>
      <description>&lt;P&gt;The simplest method is to use the OS commands, for example on windows:&lt;/P&gt;
&lt;PRE&gt;data _null_;
  x 'copy "d:/in/*.txt" "d:/out"';
run;&lt;/PRE&gt;
&lt;P&gt;You could also use a datastep to read in the files (infile) and write them out again (file).&lt;/P&gt;
&lt;P&gt;You could use fcopy function.&lt;/P&gt;
&lt;P&gt;Try having a go and coming back with questions.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 09:12:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-move-disk-files-around/m-p/445418#M111611</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-03-14T09:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: SAS query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-move-disk-files-around/m-p/445480#M111630</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;well I personally use robocopy to also recreate the structure of the subfolders:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA _NULL_;
  x 'ROBOCOPY "D:\in" "D:\out" *.txt /MIR';
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It performs the job without carrying about the existence of the 'out' Folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 13:49:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-move-disk-files-around/m-p/445480#M111630</guid>
      <dc:creator>Oligolas</dc:creator>
      <dc:date>2018-03-14T13:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to move disk files around</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-move-disk-files-around/m-p/445492#M111633</link>
      <description>&lt;P&gt;FCOPY() function as of SAS 9.4+&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 14:43:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-move-disk-files-around/m-p/445492#M111633</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-03-14T14:43:46Z</dc:date>
    </item>
  </channel>
</rss>

