<?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: Excel data file with proc import hangs up without importing in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Excel-data-file-with-proc-import-hangs-up-without-importing/m-p/611928#M18256</link>
    <description>&lt;P&gt;While the code was running, the log was recording that the data file was being imported. However, the code ran for minutes and never finished. I had to terminate the session. I had changed the file from Excel xls to xlsx. Could that have been the problem?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Dec 2019 00:22:33 GMT</pubDate>
    <dc:creator>dkcundiffMD</dc:creator>
    <dc:date>2019-12-16T00:22:33Z</dc:date>
    <item>
      <title>Excel data file with proc import hangs up without importing</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Excel-data-file-with-proc-import-hangs-up-without-importing/m-p/611839#M18244</link>
      <description>&lt;P&gt;Trying to import a 9.6 MB Excel file with a SAS Excel import snippet leads to hanging up and never completing the import. It got as far as reporting that I successfully created a data set. The same thing happened on my desktop computer as on my laptop with SAS Studio.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;/** Import an XLSX file. **/&lt;/P&gt;&lt;P&gt;PROC IMPORT DATAFILE="/folders/myfolders/GBDWtedDataDKC2017.xlsx"&lt;BR /&gt;OUT=WORK.GBDWtedDataDKC2017&lt;BR /&gt;DBMS=XLSX&lt;BR /&gt;REPLACE;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;/** Print the results. **/&lt;/P&gt;&lt;P&gt;PROC PRINT DATA=WORK.GBDWtedDataDKC2017; RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The log screenshot is attached.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;David Cundiff&lt;/P&gt;</description>
      <pubDate>Sun, 15 Dec 2019 04:32:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Excel-data-file-with-proc-import-hangs-up-without-importing/m-p/611839#M18244</guid>
      <dc:creator>dkcundiffMD</dc:creator>
      <dc:date>2019-12-15T04:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Excel data file with proc import hangs up without importing</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Excel-data-file-with-proc-import-hangs-up-without-importing/m-p/611850#M18245</link>
      <description>&lt;P&gt;Please copy/paste the log text into a window opened with the {i} button. No need for making screenshots of logs, pack those into contaiber files, and attach them. Unnecessary work, and on top the picture in the pdf does not display right (at least on the tablet I'm on).&lt;/P&gt;</description>
      <pubDate>Sun, 15 Dec 2019 08:15:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Excel-data-file-with-proc-import-hangs-up-without-importing/m-p/611850#M18245</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-12-15T08:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: Excel data file with proc import hangs up without importing</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Excel-data-file-with-proc-import-hangs-up-without-importing/m-p/611878#M18247</link>
      <description>&lt;P&gt;I can't copy and paste the log because the submission of the code hangs up and the log never finishes. I can only screenshot it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;David Cundiff&lt;/P&gt;</description>
      <pubDate>Sun, 15 Dec 2019 14:59:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Excel-data-file-with-proc-import-hangs-up-without-importing/m-p/611878#M18247</guid>
      <dc:creator>dkcundiffMD</dc:creator>
      <dc:date>2019-12-15T14:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: Excel data file with proc import hangs up without importing</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Excel-data-file-with-proc-import-hangs-up-without-importing/m-p/611880#M18248</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/292162"&gt;@dkcundiffMD&lt;/a&gt; the pdf screen shot you provided doesn't correspond to the problem you have noted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The screen shot indicates that the process imported 7886 records into the &lt;SPAN style="display: inline !important; float: none; background-color: #f4f4f4; color: #333333; font-family: 'HelevticaNeue-light','Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 150%; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;GBDWtedDataDKC2017&lt;/SPAN&gt; SAS dataset. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Dec 2019 15:11:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Excel-data-file-with-proc-import-hangs-up-without-importing/m-p/611880#M18248</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2019-12-15T15:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Excel data file with proc import hangs up without importing</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Excel-data-file-with-proc-import-hangs-up-without-importing/m-p/611928#M18256</link>
      <description>&lt;P&gt;While the code was running, the log was recording that the data file was being imported. However, the code ran for minutes and never finished. I had to terminate the session. I had changed the file from Excel xls to xlsx. Could that have been the problem?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 00:22:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Excel-data-file-with-proc-import-hangs-up-without-importing/m-p/611928#M18256</guid>
      <dc:creator>dkcundiffMD</dc:creator>
      <dc:date>2019-12-16T00:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Excel data file with proc import hangs up without importing</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Excel-data-file-with-proc-import-hangs-up-without-importing/m-p/611930#M18257</link>
      <description>&lt;P&gt;If all you did was rename the file then it would cause trouble since the format would then be different than what the extension said it was.&amp;nbsp; Similarly if you tried to read an XLSX file as if it was an XLS file that would not work.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But if you opened it in Excel and saved it using a different format then that should work.&amp;nbsp; I guess it is possible that a file in one format that PROC IMPORT has trouble with might work after it is converted by Excel to a different format.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 00:53:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Excel-data-file-with-proc-import-hangs-up-without-importing/m-p/611930#M18257</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-12-16T00:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Excel data file with proc import hangs up without importing</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Excel-data-file-with-proc-import-hangs-up-without-importing/m-p/611934#M18258</link>
      <description>&lt;P&gt;I broke the Excel file into less than 1 MB and it would import. At &amp;gt; 3 MB it was hung up. So I have to break my files into &amp;lt; 1 MB sizes? How to do that best?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;David Cundiff&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 01:14:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Excel-data-file-with-proc-import-hangs-up-without-importing/m-p/611934#M18258</guid>
      <dc:creator>dkcundiffMD</dc:creator>
      <dc:date>2019-12-16T01:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: Excel data file with proc import hangs up without importing</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Excel-data-file-with-proc-import-hangs-up-without-importing/m-p/611972#M18267</link>
      <description>&lt;P&gt;I guess I can tell you what happens. The culprit is not the import, but the proc print that will print ~ 8000 * 200 = 1,600,000 values, and that overloads your browser.&lt;/P&gt;
&lt;P&gt;If you just want to do a quick visual check, add a obs=10 dataset option in the proc print. But inspecting the dataset in the viewtable tab is much better, anyway.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 08:22:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Excel-data-file-with-proc-import-hangs-up-without-importing/m-p/611972#M18267</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-12-16T08:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Excel data file with proc import hangs up without importing</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Excel-data-file-with-proc-import-hangs-up-without-importing/m-p/612101#M18288</link>
      <description>&lt;P&gt;Do you really want to read 7886 rows of data with 209 variables?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How long did you wait after running the proc print? The system has to produce tabular output and that can take a lot of resources sometimes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to know about your actual data contents then you might consider running Proc Contents (not Print) do describe the data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps run Proc Freq for selected variables.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 17:51:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Excel-data-file-with-proc-import-hangs-up-without-importing/m-p/612101#M18288</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-12-16T17:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Excel data file with proc import hangs up without importing</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Excel-data-file-with-proc-import-hangs-up-without-importing/m-p/612208#M18291</link>
      <description>&lt;P&gt;When I used proc contents instead of proc print, the code imported the data successfully.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks to you all.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;David Cundiff&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 20:42:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Excel-data-file-with-proc-import-hangs-up-without-importing/m-p/612208#M18291</guid>
      <dc:creator>dkcundiffMD</dc:creator>
      <dc:date>2019-12-16T20:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Excel data file with proc import hangs up without importing</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Excel-data-file-with-proc-import-hangs-up-without-importing/m-p/612218#M18292</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/292162"&gt;@dkcundiffMD&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;When I used proc contents instead of proc print, the code imported the data successfully.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks to you all.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;David Cundiff&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The log showed that the import was successful. The issue is the amount of resources Proc Print takes to create large tables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once upon a time all of our SAS output was basically sent to printers (in effect). Many schools would have a limit on how many pages a student job would be allowed to print because the potential of creating mounds of paper output would be costly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I made a dummy data set of 8000 records with 201 numeric variables and printed the output. My system used 1:15 (one minute 15 seconds) of CPU time&amp;nbsp;(which is not the same as "real time" which runs a bit longer)&amp;nbsp;and the resulting HTML file was roughly 52Mbyte due to the all of the style content. Yours might vary based on the ODS style you have set for default. Placing all of the color, font and cell boundaries takes resources for the entire object to be created in memory before displaying in the Results Window.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other procedures that produce output such as Proc Freq can have similar apparent "hangs" as the tables are prepared for display.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 21:09:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Excel-data-file-with-proc-import-hangs-up-without-importing/m-p/612218#M18292</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-12-16T21:09:38Z</dc:date>
    </item>
  </channel>
</rss>

