<?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 ERROR: Insufficient space in file WORK. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Insufficient-space-in-file-WORK/m-p/699014#M213823</link>
    <description>&lt;P&gt;I have 4.6 TB free in my Linux server's filesystem that is used for SASWORK, SAS9.4TSM6 installed, and I tried sorting a char-compressed SAS file that is 20GB into a work dataset.&amp;nbsp; Here's a section of the log with fullstimer option turned on.&amp;nbsp; Why would i get this error and what is the solution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;MPRINT(LOOP_THROUGH_MONTHS.COMPARE_BASEFILE_TO_COMPFILE): **********************************************;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;MPRINT(LOOP_THROUGH_MONTHS.COMPARE_BASEFILE_TO_COMPFILE): * Identify rows that are in one file of the ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;MPRINT(LOOP_THROUGH_MONTHS.COMPARE_BASEFILE_TO_COMPFILE): * basefile-compfile pair only ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;MPRINT(LOOP_THROUGH_MONTHS.COMPARE_BASEFILE_TO_COMPFILE): **********************************************;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;MPRINT(LOOP_THROUGH_MONTHS.COMPARE_BASEFILE_TO_COMPFILE): proc sort data=baselib.me_mart_202002 out=work.basefile;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;MPRINT(LOOP_THROUGH_MONTHS.COMPARE_BASEFILE_TO_COMPFILE): by spm_loan_key;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;MPRINT(LOOP_THROUGH_MONTHS.COMPARE_BASEFILE_TO_COMPFILE): run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;NOTE: There were 9760360 observations read from the data set BASELIB.ME_MART_202002.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;ERROR: Insufficient space in file WORK.BASEFILE.DATA.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;ERROR: Failure while merging sorted runs from utility file 1 to final output.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;ERROR: Failure encountered during external sort.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;ERROR: File WORK.BASEFILE.DATA is damaged. I/O processing did not complete.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;NOTE: Due to ERROR(s) above, SAS set option OBS=0, enabling syntax check mode. This prevents execution of subsequent data modification statements.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;WARNING: The data set WORK.BASEFILE may be incomplete. When this step was stopped there were 5945247 observations and 624 variables.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;NOTE: PROCEDURE SORT used (Total process time):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;real time 7:17.58&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;user cpu time 1:34.11&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;system cpu time 1:39.85&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;memory 1056692.82k&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;OS Memory 1065912.00k&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;Timestamp 11/15/2020 07:42:42 PM&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;Step Count 1 Switch Count 7&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;Page Faults 7&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;Page Reclaims 3006747&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;Page Swaps 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;Voluntary Context Switches 1596237&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;Involuntary Context Switches 282&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;Block Input Operations 1280&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;Block Output Operations 148918416&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Nov 2020 03:07:40 GMT</pubDate>
    <dc:creator>DougZ</dc:creator>
    <dc:date>2020-11-16T03:07:40Z</dc:date>
    <item>
      <title>ERROR: Insufficient space in file WORK.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Insufficient-space-in-file-WORK/m-p/699014#M213823</link>
      <description>&lt;P&gt;I have 4.6 TB free in my Linux server's filesystem that is used for SASWORK, SAS9.4TSM6 installed, and I tried sorting a char-compressed SAS file that is 20GB into a work dataset.&amp;nbsp; Here's a section of the log with fullstimer option turned on.&amp;nbsp; Why would i get this error and what is the solution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;MPRINT(LOOP_THROUGH_MONTHS.COMPARE_BASEFILE_TO_COMPFILE): **********************************************;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;MPRINT(LOOP_THROUGH_MONTHS.COMPARE_BASEFILE_TO_COMPFILE): * Identify rows that are in one file of the ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;MPRINT(LOOP_THROUGH_MONTHS.COMPARE_BASEFILE_TO_COMPFILE): * basefile-compfile pair only ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;MPRINT(LOOP_THROUGH_MONTHS.COMPARE_BASEFILE_TO_COMPFILE): **********************************************;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;MPRINT(LOOP_THROUGH_MONTHS.COMPARE_BASEFILE_TO_COMPFILE): proc sort data=baselib.me_mart_202002 out=work.basefile;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;MPRINT(LOOP_THROUGH_MONTHS.COMPARE_BASEFILE_TO_COMPFILE): by spm_loan_key;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;MPRINT(LOOP_THROUGH_MONTHS.COMPARE_BASEFILE_TO_COMPFILE): run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;NOTE: There were 9760360 observations read from the data set BASELIB.ME_MART_202002.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;ERROR: Insufficient space in file WORK.BASEFILE.DATA.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;ERROR: Failure while merging sorted runs from utility file 1 to final output.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;ERROR: Failure encountered during external sort.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;ERROR: File WORK.BASEFILE.DATA is damaged. I/O processing did not complete.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;NOTE: Due to ERROR(s) above, SAS set option OBS=0, enabling syntax check mode. This prevents execution of subsequent data modification statements.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;WARNING: The data set WORK.BASEFILE may be incomplete. When this step was stopped there were 5945247 observations and 624 variables.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;NOTE: PROCEDURE SORT used (Total process time):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;real time 7:17.58&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;user cpu time 1:34.11&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;system cpu time 1:39.85&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;memory 1056692.82k&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;OS Memory 1065912.00k&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;Timestamp 11/15/2020 07:42:42 PM&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;Step Count 1 Switch Count 7&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;Page Faults 7&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;Page Reclaims 3006747&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;Page Swaps 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;Voluntary Context Switches 1596237&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;Involuntary Context Switches 282&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;Block Input Operations 1280&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;Block Output Operations 148918416&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 03:07:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Insufficient-space-in-file-WORK/m-p/699014#M213823</guid>
      <dc:creator>DougZ</dc:creator>
      <dc:date>2020-11-16T03:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Insufficient space in file WORK.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Insufficient-space-in-file-WORK/m-p/699015#M213824</link>
      <description>&lt;P&gt;Try compressing the WORK dataset as well. Unless you have COMPRESS = YES as a session option WORK datasets will not be compressed.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;out=work.basefile (compress = yes)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;SAS utility files are not compressed so the SORT could be using more space than you think. Also try re-running the program while monitoring your WORK folder usage to see how much space really gets used.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 03:21:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Insufficient-space-in-file-WORK/m-p/699015#M213824</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-11-16T03:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Insufficient space in file WORK.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Insufficient-space-in-file-WORK/m-p/699045#M213840</link>
      <description>&lt;P&gt;The fact that the filesystem has a large amount of free space does not automatically mean that a single user has all that space available. A diligent admin will always set user quotas on shared resources where end users have write permission, so a single user can't occupy the whole filesystem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you need to talk to your admin to determine what is available for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Run a PROC CONTENTS on your source dataset to see if it is compressed. As a test, run this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test (compress=yes);
set baselib.me_mart_202002 (obs=1000000);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and look at the compression rate reported in the log. If it is substantial, try using the TAGSORT option in PROC SORT. It will reduce the size of the utility file (utility files are uncompressed!), albeit at a performance cost.&lt;/P&gt;
&lt;P&gt;Since the utility file is stored in WORK (unless a special configuration - UTILLOC - is made), it can eat a large part of your quota.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 05:55:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Insufficient-space-in-file-WORK/m-p/699045#M213840</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-11-16T05:55:15Z</dc:date>
    </item>
  </channel>
</rss>

