<?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: Proc Copy vs fcopy function: Can anyone explain the performance difference in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Copy-vs-fcopy-function-Can-anyone-explain-the-performance/m-p/486258#M126499</link>
    <description>&lt;P&gt;2 minutes for one gigabyte still looks quite slow to me. That should be finished in ~20 seconds on any decent storage nowadays. Are you copying over the network?&lt;/P&gt;</description>
    <pubDate>Mon, 13 Aug 2018 06:00:11 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2018-08-13T06:00:11Z</dc:date>
    <item>
      <title>Proc Copy vs fcopy function: Can anyone explain the performance difference</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Copy-vs-fcopy-function-Can-anyone-explain-the-performance/m-p/486194#M126459</link>
      <description>&lt;P&gt;I recently stumbled across the FCOPY function and quite frankly it's performance appears to be too good to be true.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm running on 64-Bit AIX, SAS 9.4 M5.&amp;nbsp; We have a permanent&amp;nbsp;SAS data set created daily that's almost a gigabyte in size, about 65 million long records that we copy to a user-accessible directory so users stay out of the production directory.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc Copy takes about 40 minutes to copy the data set and the index in one step.&amp;nbsp; I know that Fcopy copies files as binary images but it takes only about two minutes to do the same thing in two separate steps, data set then index.&amp;nbsp; That's almost unbelievable so I did it a few times at different times of the day.&amp;nbsp; Same performance.&amp;nbsp; I've never tried copying the files with the system mv command so I don't know how long takes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I pulled a million records from the Proc Copy copy and compared them to the same records in the Fcopy copy (thank you Proc Compare) and no unequal values were found.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not looking a gift horse in the mouth, but I'd like to understand why Fcopy is sooooo much faster than Proc Copy?&amp;nbsp;Is it that a binary copy process uses a bigger&amp;nbsp;block size or proc copy is has&amp;nbsp;a&amp;nbsp;validation/verification&amp;nbsp;step?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Aug 2018 22:07:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Copy-vs-fcopy-function-Can-anyone-explain-the-performance/m-p/486194#M126459</guid>
      <dc:creator>bentleyj1</dc:creator>
      <dc:date>2018-08-12T22:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Copy vs fcopy function: Can anyone explain the performance difference</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Copy-vs-fcopy-function-Can-anyone-explain-the-performance/m-p/486219#M126471</link>
      <description>&lt;P&gt;This is a conjecture:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC COPY has to support user requests on change encryption keys, changing data engine, and other differences that I suspect require converting the input data variable by variable, which in turn would mean reading the variables into something like the program data vector in a data step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or, consider this example that requests a new index be created in the output data set that wasn't in the input, which certainly requires actual processing of the data:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc copy in=sashelp out=work override=(index=(name));
  select class ;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But, for binary copy, FCOPY is a "dumb" data transcription - no data parsing required.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Aug 2018 00:38:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Copy-vs-fcopy-function-Can-anyone-explain-the-performance/m-p/486219#M126471</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2018-08-13T00:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Copy vs fcopy function: Can anyone explain the performance difference</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Copy-vs-fcopy-function-Can-anyone-explain-the-performance/m-p/486258#M126499</link>
      <description>&lt;P&gt;2 minutes for one gigabyte still looks quite slow to me. That should be finished in ~20 seconds on any decent storage nowadays. Are you copying over the network?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Aug 2018 06:00:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Copy-vs-fcopy-function-Can-anyone-explain-the-performance/m-p/486258#M126499</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-08-13T06:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Copy vs fcopy function: Can anyone explain the performance difference</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Copy-vs-fcopy-function-Can-anyone-explain-the-performance/m-p/486346#M126531</link>
      <description>&lt;P&gt;Actually, 2 minutes is fast here... the system is totally I/O bound. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm copying the file to a different directory on the same file system.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Mon, 13 Aug 2018 13:47:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Copy-vs-fcopy-function-Can-anyone-explain-the-performance/m-p/486346#M126531</guid>
      <dc:creator>bentleyj1</dc:creator>
      <dc:date>2018-08-13T13:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Copy vs fcopy function: Can anyone explain the performance difference</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Copy-vs-fcopy-function-Can-anyone-explain-the-performance/m-p/486351#M126534</link>
      <description>&lt;P&gt;2GB / 120 seconds ~ 17 MB/s. That's not slow, that's pathetic. Get a system that was built after the millenium &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or is so little value placed on data warehousing where you work?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Aug 2018 14:04:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Copy-vs-fcopy-function-Can-anyone-explain-the-performance/m-p/486351#M126534</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-08-13T14:04:40Z</dc:date>
    </item>
  </channel>
</rss>

