<?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 Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/ERROR-Insufficient-space-in-file-WORK/m-p/326921#M1773</link>
    <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I am using SAS University Edition in Windows 10 environment with VM Ware Workstation Player 12. I am now doing logistic regression and propensity score matching. My data consist of 1.5 million observations and 163 variables. The size of data file is about 450 M.&amp;nbsp; Command consists of several macros and 250 lines. When I run the program, it stops and the message pops up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasError"&gt;ERROR: Insufficient space in file WORK.BIRTH.DATA.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: File WORK.BIRTH.DATA is damaged. I/O processing did not complete.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: There were 1579785 observations read from the data set WORK.BIRTH.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: The data set WORK.BIRTH may be incomplete. When this step was stopped there were 1579785 observations and 167 variables.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Data set WORK.BIRTH was not replaced because this step was stopped.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: DATA statement used (Total process time):&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;real time 5.18 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;cpu time 2.08 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Part of the code is like this.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&lt;BR /&gt;&lt;BR /&gt;PROC IMPORT file='/folders/myfolders/epi271/natl2015_ver11_1_2.dta'&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;DBMS=stata&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;OUT=WORK.birth;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;RUN;&lt;BR /&gt;data work.birth;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;set work.birth;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;newmager9=.;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;if mager9=1 then&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;newmager9=2;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;if mager9 ne 1 then&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;newmager9=mager9;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;id=_N_;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc logistic descending;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;class newmager9 morace newmar newmeduc para_cat overtdm chrhtn ptdhx cesar_cat;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;model inftr=newmager9 morace newmar newmeduc para_cat overtdm chrhtn ptdhx&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;cesar_cat;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;output out=psmodel pred=propscore;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;****************************************************************************************************************************************/&lt;BR /&gt;data caco1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;set psmodel;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;propint=propscore;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; if inftr=1 then&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;case=1;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if inftr=0 then&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;control=1;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc sort ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;by id;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;*id can be modified as wanted;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;********* MACRO FOR MATCHING BASED ON PROPENSITY SCORE ******************************************;&lt;BR /&gt;&lt;BR /&gt;%macro caco(s, x, m, l, gd);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;data t3a(keep=id1 propsco1) t3b(keep=id2 propsco2);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;set caco1;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;------------------------------------------------------------------------&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;This message shows even before logistic regression starts. I cannot understand this situation. Image file is the disk setting of the virtual machine.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6860iC269E4D37BC0D54A/image-size/medium?v=1.0&amp;amp;px=-1" alt="cut.png" title="cut.png" border="0" /&gt;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Is there any way to get around it? Please let me know.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Thank you.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13355i321AC6E303045ED0/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="cut.png" title="cut.png" /&gt;</description>
    <pubDate>Tue, 24 Jan 2017 03:02:03 GMT</pubDate>
    <dc:creator>HSpark</dc:creator>
    <dc:date>2017-01-24T03:02:03Z</dc:date>
    <item>
      <title>ERROR: Insufficient space in file WORK</title>
      <link>https://communities.sas.com/t5/SAS-Studio/ERROR-Insufficient-space-in-file-WORK/m-p/326921#M1773</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I am using SAS University Edition in Windows 10 environment with VM Ware Workstation Player 12. I am now doing logistic regression and propensity score matching. My data consist of 1.5 million observations and 163 variables. The size of data file is about 450 M.&amp;nbsp; Command consists of several macros and 250 lines. When I run the program, it stops and the message pops up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasError"&gt;ERROR: Insufficient space in file WORK.BIRTH.DATA.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: File WORK.BIRTH.DATA is damaged. I/O processing did not complete.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: There were 1579785 observations read from the data set WORK.BIRTH.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: The data set WORK.BIRTH may be incomplete. When this step was stopped there were 1579785 observations and 167 variables.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Data set WORK.BIRTH was not replaced because this step was stopped.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: DATA statement used (Total process time):&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;real time 5.18 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;cpu time 2.08 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Part of the code is like this.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&lt;BR /&gt;&lt;BR /&gt;PROC IMPORT file='/folders/myfolders/epi271/natl2015_ver11_1_2.dta'&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;DBMS=stata&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;OUT=WORK.birth;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;RUN;&lt;BR /&gt;data work.birth;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;set work.birth;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;newmager9=.;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;if mager9=1 then&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;newmager9=2;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;if mager9 ne 1 then&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;newmager9=mager9;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;id=_N_;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc logistic descending;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;class newmager9 morace newmar newmeduc para_cat overtdm chrhtn ptdhx cesar_cat;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;model inftr=newmager9 morace newmar newmeduc para_cat overtdm chrhtn ptdhx&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;cesar_cat;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;output out=psmodel pred=propscore;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;****************************************************************************************************************************************/&lt;BR /&gt;data caco1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;set psmodel;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;propint=propscore;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; if inftr=1 then&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;case=1;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if inftr=0 then&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;control=1;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc sort ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;by id;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;*id can be modified as wanted;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;********* MACRO FOR MATCHING BASED ON PROPENSITY SCORE ******************************************;&lt;BR /&gt;&lt;BR /&gt;%macro caco(s, x, m, l, gd);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;data t3a(keep=id1 propsco1) t3b(keep=id2 propsco2);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;set caco1;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;------------------------------------------------------------------------&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;This message shows even before logistic regression starts. I cannot understand this situation. Image file is the disk setting of the virtual machine.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6860iC269E4D37BC0D54A/image-size/medium?v=1.0&amp;amp;px=-1" alt="cut.png" title="cut.png" border="0" /&gt;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Is there any way to get around it? Please let me know.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Thank you.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13355i321AC6E303045ED0/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="cut.png" title="cut.png" /&gt;</description>
      <pubDate>Tue, 24 Jan 2017 03:02:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/ERROR-Insufficient-space-in-file-WORK/m-p/326921#M1773</guid>
      <dc:creator>HSpark</dc:creator>
      <dc:date>2017-01-24T03:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Insufficient space in file WORK</title>
      <link>https://communities.sas.com/t5/SAS-Studio/ERROR-Insufficient-space-in-file-WORK/m-p/326945#M1777</link>
      <description>&lt;P&gt;This may be too big for SAS UE. The original intention was for learning purposes only and there are restrictions built into the software. I would contact SAS Tech Support directly for this and see if there's any work around. Because of the limitations of the software, one way to get around is to divide the data into smaller portions and process individually, if possible.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2017 04:52:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/ERROR-Insufficient-space-in-file-WORK/m-p/326945#M1777</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-01-24T04:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Insufficient space in file WORK</title>
      <link>https://communities.sas.com/t5/SAS-Studio/ERROR-Insufficient-space-in-file-WORK/m-p/326978#M1778</link>
      <description>&lt;P&gt;Need to chime in with&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;: this data set is obviously larger&amp;nbsp;than required for self paced learning purposes. You should be able to use a subset of your input data, and still be able to perform your training.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A thing you could do is to remove any work data set is not needed in your process as soon as it has played out its role.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2017 08:47:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/ERROR-Insufficient-space-in-file-WORK/m-p/326978#M1778</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-01-24T08:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Insufficient space in file WORK</title>
      <link>https://communities.sas.com/t5/SAS-Studio/ERROR-Insufficient-space-in-file-WORK/m-p/326984#M1779</link>
      <description>&lt;P&gt;Although the data file size is "only" 450 MB, this does not mean that a SAS dataset won't be considerably larger.&lt;/P&gt;
&lt;P&gt;Let's make a quick calculation:&lt;/P&gt;
&lt;P&gt;Assume your variables were all numeric (8 bytes), then a single observation would consume&lt;/P&gt;
&lt;P&gt;163 * 8 = 1,304 bytes&lt;/P&gt;
&lt;P&gt;Multiply by 1.5 million&lt;/P&gt;
&lt;P&gt;1,304 * 1,500,000 = 1,956,000,000 bytes&lt;/P&gt;
&lt;P&gt;equates to 1,910,156.25 Kbytes&lt;/P&gt;
&lt;P&gt;equates to 1,865.387 Mbytes&lt;/P&gt;
&lt;P&gt;equates to 1.8217 GB&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Depending on the structure (char variables might be _considerably_ longer), the dataset might be much bigger than that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;UE is simply not designed for this quantity structure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Inspect your data on the Stata side and reduce the number of observations.&lt;/P&gt;
&lt;P&gt;Use the compress=yes option to minimize disk storage consumption.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2017 09:29:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/ERROR-Insufficient-space-in-file-WORK/m-p/326984#M1779</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-01-24T09:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Insufficient space in file WORK</title>
      <link>https://communities.sas.com/t5/SAS-Studio/ERROR-Insufficient-space-in-file-WORK/m-p/327230#M1784</link>
      <description>Thank you for kind explanation. I will try SAS 9.4 at the school lab. Thank you.</description>
      <pubDate>Wed, 25 Jan 2017 01:13:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/ERROR-Insufficient-space-in-file-WORK/m-p/327230#M1784</guid>
      <dc:creator>HSpark</dc:creator>
      <dc:date>2017-01-25T01:13:56Z</dc:date>
    </item>
  </channel>
</rss>

