<?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: 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/298478#M1112</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How big are your tables? A Cartesian join will be big...&lt;/P&gt;
&lt;P&gt;How big is your workspace, if you know?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, fix the first error (create misspelled) and repost you code/log.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Sep 2016 01:37:56 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-09-15T01:37:56Z</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/298455#M1110</link>
      <description>&lt;P&gt;proc sql;&lt;BR /&gt;creat table q6 as&lt;BR /&gt;select a.PRODUCT_ID,a.churn_month,b.*&lt;BR /&gt;from d.p3 as a left join lab as b&lt;BR /&gt;on a.PRODUCT_ID ne b.PRODUCT_ID;&lt;/P&gt;&lt;P&gt;QUIT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;lab table has 100000 records&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;log&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasSource"&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;55&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;56&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc sql;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;57&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; creat table q6 as&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _____&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING 1-322: Assuming the symbol CREATE was misspelled as creat.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;58&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select a.PRODUCT_ID,a.churn_month,b.*&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;59&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from d.p3 as a left join lab as b&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;60&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on a.PRODUCT_ID ne b.PRODUCT_ID;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: The execution of this query involves performing one or more Cartesian product joins that can not be optimized.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Variable PRODUCT_ID already exists on file WORK.Q6.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: Insufficient space in file WORK.Q6.DATA.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: File WORK.Q6.DATA is damaged. I/O processing did not complete.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;61&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;62&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; QUIT;&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: PROCEDURE SQL used (Total process time):&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1:01.75&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 21.80 seconds&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2016 22:26:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/ERROR-Insufficient-space-in-file-WORK/m-p/298455#M1110</guid>
      <dc:creator>rishabhmehra13</dc:creator>
      <dc:date>2016-09-14T22:26:23Z</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/298464#M1111</link>
      <description>Hi,&lt;BR /&gt;What are you trying to achieve ?&lt;BR /&gt;Why do you use table A left join table B on a.PRODUCT_ID ne b.PRODUCT_ID ?&lt;BR /&gt;&lt;BR /&gt;If you try to extract all those records that in table A and not in table B, then you can use this method:&lt;BR /&gt;&lt;BR /&gt;from d.p3 as a left join lab as b&lt;BR /&gt;on a.PRODUCT_ID = b.PRODUCT_ID&lt;BR /&gt;where b.PRODUCT_ID is null&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Sep 2016 23:37:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/ERROR-Insufficient-space-in-file-WORK/m-p/298464#M1111</guid>
      <dc:creator>alberts</dc:creator>
      <dc:date>2016-09-14T23:37:52Z</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/298478#M1112</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How big are your tables? A Cartesian join will be big...&lt;/P&gt;
&lt;P&gt;How big is your workspace, if you know?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, fix the first error (create misspelled) and repost you code/log.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2016 01:37:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/ERROR-Insufficient-space-in-file-WORK/m-p/298478#M1112</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-09-15T01:37:56Z</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/298479#M1113</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How big are your tables? A Cartesian join will be big...&lt;/P&gt;
&lt;P&gt;How big is your workspace, if you know?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, fix the first error (create misspelled) and repost you code/log.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2016 01:37:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/ERROR-Insufficient-space-in-file-WORK/m-p/298479#M1113</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-09-15T01:37:57Z</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/298527#M1114</link>
      <description>&lt;P&gt;If your intent is to find all records in table a that do not have an entry in b, then you wrote your query wrong.&lt;/P&gt;
&lt;P&gt;As it is, it will output every combination of tables a and b where the product ID's dont match.&lt;/P&gt;
&lt;P&gt;Think of 100 IDs in b and 10000 records in a. For every record in a, there will be 99 records in b that fulfill your condition, therefore you get 990000 records in the output. This is what happens with you and explodes your WORK.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd rather do this to find records in a that don't have a match in b:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=d.p3;
by product_id;
run;

proc sort data=lab;
by product_id;
run;

data q6;
merge
  d.p3 (in=a)
  lab (in=b keep=product_id)
;
by product_id;
if a and not b;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Unless you have a completely different intention, of course.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2016 06:47:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/ERROR-Insufficient-space-in-file-WORK/m-p/298527#M1114</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-09-15T06:47:33Z</dc:date>
    </item>
  </channel>
</rss>

