<?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: Importing Excel file from PC File Server - diff.  CPU and real time in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Importing-Excel-file-from-PC-File-Server-diff-CPU-and-real-time/m-p/26606#M3885</link>
    <description>As Chris has suggested, it is possibly a slow, constrained network that causes this. Do you consistently get around the same time or is it faster outside usual work hours?&lt;BR /&gt;
&lt;BR /&gt;
I suggest you convert the spreadsheet to a comma or tab delimited file (FILE SAVE AS in Excel) and try reading it in as a delimited file not a spreadsheet. Then compare the elapsed time.</description>
    <pubDate>Wed, 02 Jun 2010 02:05:39 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2010-06-02T02:05:39Z</dc:date>
    <item>
      <title>Importing Excel file from PC File Server - diff.  CPU and real time</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Importing-Excel-file-from-PC-File-Server-diff-CPU-and-real-time/m-p/26603#M3882</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I am using E-Guide 4.1 to import an Excel file from the PC File Server. However, there is a big gap between total CPU time (7 secs) and real time (11 mins) to import the file. I have tried various methods to import using code, but can't seem to reduce the time.&lt;BR /&gt;
&lt;BR /&gt;
Here are the various methods I have tried and the logs:&lt;BR /&gt;
&lt;B&gt;1) Set Excel file as libname and use data step&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
         libname db1 pcfiles server="wm-flor-ds052"&lt;BR /&gt;
         	path="D:\SAS\PCFile\IE\LaborDemand\CIF_Hierarchy.xls";&lt;BR /&gt;
         &lt;BR /&gt;
         	options fullstimer;&lt;BR /&gt;
         &lt;BR /&gt;
         data cif_stf2;         &lt;BR /&gt;
         	set db1.'depvar_list$'n;         &lt;BR /&gt;
         	if dep_var2 ^= "";         &lt;BR /&gt;
         run;&lt;BR /&gt;
&lt;BR /&gt;
NOTE: There were 17576 observations read from the data set DB1.'depvar_list$'n.&lt;BR /&gt;
NOTE: The data set WORK.CIF_STF2 has 6040 observations and 19 variables.&lt;BR /&gt;
NOTE: DATA statement used (Total process time):&lt;BR /&gt;
      real time           9:54.00&lt;BR /&gt;
      user cpu time       1.96 seconds&lt;BR /&gt;
      system cpu time     4.78 seconds&lt;BR /&gt;
      Memory                            771k&lt;BR /&gt;
      Page Faults                       3&lt;BR /&gt;
      Page Reclaims                     324&lt;BR /&gt;
      Page Swaps                        0&lt;BR /&gt;
      Voluntary Context Switches        676347&lt;BR /&gt;
      Involuntary Context Switches      4913&lt;BR /&gt;
      Block Input Operations            0&lt;BR /&gt;
      Block Output Operations           0&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;2) Set Excel file as libname and use proc import code&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
         proc import dbms=excelcs out=cif_stf (where=(dep_var2 ^= ""))&lt;BR /&gt;
         	datafile="D:\SAS\PCFile\IE\LaborDemand\CIF_Hierarchy.xls" replace;&lt;BR /&gt;
         &lt;BR /&gt;
         	server="wm-flor-ds052";&lt;BR /&gt;
         	sheet='depvar_list$'n;&lt;BR /&gt;
         run;&lt;BR /&gt;
&lt;BR /&gt;
NOTE: .CIF_STF was successfully created.&lt;BR /&gt;
NOTE: PROCEDURE IMPORT used (Total process time):&lt;BR /&gt;
      real time           11:14.00&lt;BR /&gt;
      user cpu time       2.09 seconds&lt;BR /&gt;
      system cpu time     4.91 seconds&lt;BR /&gt;
      Memory                            240k&lt;BR /&gt;
      Page Faults                       8&lt;BR /&gt;
      Page Reclaims                     585                                               &lt;BR /&gt;
      Page Swaps                        0&lt;BR /&gt;
      Voluntary Context Switches        682592&lt;BR /&gt;
      Involuntary Context Switches      1664&lt;BR /&gt;
      Block Input Operations            0&lt;BR /&gt;
      Block Output Operations           0&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;3) Using File--&amp;gt;Import--&amp;gt; SAS Server--&amp;gt; libname - produces similar results as above&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;The only way it works: File--&amp;gt;Import--&amp;gt;Local Computer--&amp;gt;Excel file&lt;/B&gt; - this runs in 6 secs real time.&lt;BR /&gt;
&lt;BR /&gt;
How can I replicate the above result using code either through method 1) or 2)?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
kdp</description>
      <pubDate>Mon, 24 May 2010 14:59:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Importing-Excel-file-from-PC-File-Server-diff-CPU-and-real-time/m-p/26603#M3882</guid>
      <dc:creator>kdp</dc:creator>
      <dc:date>2010-05-24T14:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Excel file from PC File Server - diff.  CPU and real time</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Importing-Excel-file-from-PC-File-Server-diff-CPU-and-real-time/m-p/26604#M3883</link>
      <description>The "fast" method you cite is actually EG reading your Excel file and turning it into a SAS data set.  There isn't a SAS program at work here.&lt;BR /&gt;
&lt;BR /&gt;
You're using the PC Files server, which means that the Excel file has to be moved to another machine to be processed and that's where the work is done.  The data set that results is sent back to SAS.  So I suppose that your SAS session CPU is not heavily taxed; most of the time is spent waiting for data to be transferred to/from the PC Files server.&lt;BR /&gt;
&lt;BR /&gt;
Chris</description>
      <pubDate>Tue, 25 May 2010 12:35:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Importing-Excel-file-from-PC-File-Server-diff-CPU-and-real-time/m-p/26604#M3883</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2010-05-25T12:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Excel file from PC File Server - diff.  CPU and real time</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Importing-Excel-file-from-PC-File-Server-diff-CPU-and-real-time/m-p/26605#M3884</link>
      <description>So, is there some setting or parameters I can change in method 1) or 2) to make it run faster? &lt;BR /&gt;
&lt;BR /&gt;
The file only has 17K rows with 15 columns, so it shouldn't take 12mins to import...that's a piece of cake for anything inside of SAS.</description>
      <pubDate>Tue, 25 May 2010 13:55:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Importing-Excel-file-from-PC-File-Server-diff-CPU-and-real-time/m-p/26605#M3884</guid>
      <dc:creator>kdp</dc:creator>
      <dc:date>2010-05-25T13:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Excel file from PC File Server - diff.  CPU and real time</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Importing-Excel-file-from-PC-File-Server-diff-CPU-and-real-time/m-p/26606#M3885</link>
      <description>As Chris has suggested, it is possibly a slow, constrained network that causes this. Do you consistently get around the same time or is it faster outside usual work hours?&lt;BR /&gt;
&lt;BR /&gt;
I suggest you convert the spreadsheet to a comma or tab delimited file (FILE SAVE AS in Excel) and try reading it in as a delimited file not a spreadsheet. Then compare the elapsed time.</description>
      <pubDate>Wed, 02 Jun 2010 02:05:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Importing-Excel-file-from-PC-File-Server-diff-CPU-and-real-time/m-p/26606#M3885</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2010-06-02T02:05:39Z</dc:date>
    </item>
  </channel>
</rss>

