<?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: Possible reasons for I/O error? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Possible-reasons-for-I-O-error/m-p/121866#M24965</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Beside of everything else which has already been said:&lt;/P&gt;&lt;P&gt;90GB for 1M rows means that you use around 94KB per row. Is this possible? Or do you have deleted obs in your dataset which possibly is now constantly growing untill you run out of space? Proc Contents will tell you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Sep 2012 23:19:11 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2012-09-17T23:19:11Z</dc:date>
    <item>
      <title>Possible reasons for I/O error?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Possible-reasons-for-I-O-error/m-p/121861#M24960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My program abruptly ended throwing out an I/O error when trying to perform a join via proc sql step. The input dataset holds close to million records. The program was running on a remote server which also bases the SAS Software. The programmer who used to run this program for close to 3 years mentioned that she never got this error in the code. I checked the SAS Work directory and we have enough space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I re-ran the program but the same error appeared. Then, I reduced the number of observations using the OBS= option and this time it ran just fine. But, the full run is not successful. We re-booted the server, then the code ran fine even for full observations. Is the error really something to do with the server? In that case, would a smaller dataset escape from being caught?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciating your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Gnans&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Gnans&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2012 10:12:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Possible-reasons-for-I-O-error/m-p/121861#M24960</guid>
      <dc:creator>msg</dc:creator>
      <dc:date>2012-09-14T10:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Possible reasons for I/O error?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Possible-reasons-for-I-O-error/m-p/121862#M24961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Given the diagnostics, the most likely reason is that you are running out of resources.&lt;/P&gt;&lt;P&gt;How do you know that your saswork is big enough?&lt;/P&gt;&lt;P&gt;A rule of thumb is to have the saswork at least 3-4 times bigger than the largest table in a join.&lt;/P&gt;&lt;P&gt;If RAM is available, raising MEMSIZE and SORTSIZE might help.&lt;/P&gt;&lt;P&gt;You could monitor the server as your query is running, both according to CPU, memory and disk usage.&lt;BR /&gt;You might also want to optimize the query, i.e. addining indexes. Using the PROC SQL option_method will help you understand how SAS is executing the query.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2012 10:55:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Possible-reasons-for-I-O-error/m-p/121862#M24961</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2012-09-14T10:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Possible reasons for I/O error?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Possible-reasons-for-I-O-error/m-p/121863#M24962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply. Yes, I checked the SAS Work location which has been given 600 GB of space while the table is 90 GB. Since, the code was running without I/O error for years, few suggested that the server be monitored.But, the admin wants to the list of components that are to be monitored. Any idea on the components? I tried SORTSIZE but to no avail. The code has been split into simple steps and currently being tested in Data step. So&amp;nbsp; I haven't tested _method option yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gnans&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 08:47:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Possible-reasons-for-I-O-error/m-p/121863#M24962</guid>
      <dc:creator>msg</dc:creator>
      <dc:date>2012-09-17T08:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Possible reasons for I/O error?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Possible-reasons-for-I-O-error/m-p/121864#M24963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Disk and memory usage should be the most interesting to monitor.&lt;/P&gt;&lt;P&gt;If you run with less data, add OPTIONS FULLSTIMER MSGLEVEL=I; to your program - you will have some more detailed information on resource consumption in the log.&lt;/P&gt;&lt;P&gt;What do you mean by " but to no avail"? If your job is alone on the server, try set MEMESIZE to 75% of actual memory, and SORTSIZE to 80-90% of MEMSIZE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 08:56:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Possible-reasons-for-I-O-error/m-p/121864#M24963</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2012-09-17T08:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Possible reasons for I/O error?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Possible-reasons-for-I-O-error/m-p/121865#M24964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gnans,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It may not be a resource issue.&amp;nbsp; It may be that one of the data sets has been corrupted, toward the end of the file.&amp;nbsp; You wouldn't have any problem reading the beginning of the data set (with OBS=), but would run into trouble when hitting the corrupted spot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try a simple test.&amp;nbsp; Just read in each source separately without even saving anything.&amp;nbsp; Just verify that you can actually read each data source.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 13:15:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Possible-reasons-for-I-O-error/m-p/121865#M24964</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2012-09-17T13:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Possible reasons for I/O error?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Possible-reasons-for-I-O-error/m-p/121866#M24965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Beside of everything else which has already been said:&lt;/P&gt;&lt;P&gt;90GB for 1M rows means that you use around 94KB per row. Is this possible? Or do you have deleted obs in your dataset which possibly is now constantly growing untill you run out of space? Proc Contents will tell you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 23:19:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Possible-reasons-for-I-O-error/m-p/121866#M24965</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2012-09-17T23:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Possible reasons for I/O error?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Possible-reasons-for-I-O-error/m-p/121867#M24966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; nothreads options can help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc sql nothreads;&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=&amp;lt;datasetname&amp;gt; nothreads out=&amp;lt;outdasetname&amp;gt;&lt;/P&gt;&lt;P&gt;by &amp;lt;key&amp;gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;geraldo brasil.&lt;/P&gt;&lt;P&gt;this is;;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2012 02:55:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Possible-reasons-for-I-O-error/m-p/121867#M24966</guid>
      <dc:creator>Geraldo</dc:creator>
      <dc:date>2012-09-18T02:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: Possible reasons for I/O error?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Possible-reasons-for-I-O-error/m-p/121868#M24967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would say, I/O error can be very vague.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be of great help if you could post the error, and give us some details about the table you are trying to process and the type o data manipulation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could be a corrupted data set, as Astounding said.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could be the WORK library running out of space. Depending on what you're doing with the data, you may need 3 to 4 times the size (sas sort on windows for example) of input data set in available space. And don't forget that the WORK library is normally shared between all SAS processes running in the machine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers from Portugal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Daniel Santos @ &lt;A href="http://www.cgd.pt" target="_blank"&gt;www.cgd.pt&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2012 08:14:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Possible-reasons-for-I-O-error/m-p/121868#M24967</guid>
      <dc:creator>DanielSantos</dc:creator>
      <dc:date>2012-09-18T08:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Possible reasons for I/O error?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Possible-reasons-for-I-O-error/m-p/121869#M24968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry its my mistake. The table contains 234,773,795 rows.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2012 11:56:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Possible-reasons-for-I-O-error/m-p/121869#M24968</guid>
      <dc:creator>msg</dc:creator>
      <dc:date>2012-09-18T11:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Possible reasons for I/O error?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Possible-reasons-for-I-O-error/m-p/121870#M24969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Update:&lt;/P&gt;&lt;P&gt;The code was now executed successfully without I/O error, after the server was re-booted. The admin suggested that there was another memory intensive app sharing the server which might have used up resources. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2012 12:19:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Possible-reasons-for-I-O-error/m-p/121870#M24969</guid>
      <dc:creator>msg</dc:creator>
      <dc:date>2012-09-18T12:19:31Z</dc:date>
    </item>
  </channel>
</rss>

