<?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: Insufficient space in file WORK.'SASTMP-000000024'n.UTILITY. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Insufficient-space-in-file-WORK-SASTMP-000000024-n-UTILITY/m-p/737192#M229795</link>
    <description>&lt;P&gt;If you get large cartesian joins, you need to find a way to make the join restrictive, e.g. join additionally on zipcodes or birth dates or ....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After all, the result in its current form would be massively inaccurate, from what I get about your data.&lt;/P&gt;</description>
    <pubDate>Tue, 27 Apr 2021 08:41:16 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2021-04-27T08:41:16Z</dc:date>
    <item>
      <title>Insufficient space in file WORK.'SASTMP-000000024'n.UTILITY.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Insufficient-space-in-file-WORK-SASTMP-000000024-n-UTILITY/m-p/737181#M229786</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am running the code and shows the following problem,&lt;/P&gt;&lt;PRE&gt;84   proc sql;
85       create table Process.merge4 as
86       select distinct
87       inpat.psn_name,
88       total_appln,
89       UPCASE(PERSON_CTRY_CODE) as PERSON_CTRY_CODE,
90       UPCASE(PERSON_ADDRESS) as PERSON_ADDRESS
91       from Process.merge3_1 as inpat
92       left join Pat2020.tls206_PERSON (keep=psn_name PERSON_CTRY_CODE PERSON_ADDRESS) as inco on
92 ! inpat.psn_name=inco.psn_name
93       /*where person_ctry_code ne ''*/
94       order by inpat.psn_name
95       ;
&lt;U&gt;ERROR: Insufficient space in file WORK.'SASTMP-000000024'n.UTILITY.
ERROR: File WORK.'SASTMP-000000024'n.UTILITY is damaged. I/O processing did not complete.
NOTE: Error was encountered during utility-file processing. You may be able to execute the SQL
      statement successfully if you allocate more space to the WORK library.
ERROR: There is not enough WORK disk space to store the results of an internal sorting phase.
ERROR: An error has occurred.&lt;/U&gt;

96   quit;
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE SQL used (Total process time):
      real time           8:55:48.21
      cpu time            9:36.09

&lt;/PRE&gt;&lt;P&gt;I have used the&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;libname user 'H:\SAS_work';&lt;/PRE&gt;&lt;P&gt;to set a larger space for work library (2.59T free of H:\).&lt;/P&gt;&lt;P&gt;and used&lt;/P&gt;&lt;PRE&gt;%put %sysfunc(pathname(work));&lt;/PRE&gt;&lt;P&gt;to '&lt;SPAN&gt;Clean out old SAS Work Folders'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But still, get this result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please give me some advice about this?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 07:50:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Insufficient-space-in-file-WORK-SASTMP-000000024-n-UTILITY/m-p/737181#M229786</guid>
      <dc:creator>Alexxxxxxx</dc:creator>
      <dc:date>2021-04-27T07:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient space in file WORK.'SASTMP-000000024'n.UTILITY.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Insufficient-space-in-file-WORK-SASTMP-000000024-n-UTILITY/m-p/737184#M229789</link>
      <description>&lt;P&gt;Several points&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;don't use a networked drive for WORK. WORK should always be on the fastest storage you have available, which either means local or SAN. H: let's me assume this is a network share&lt;/LI&gt;
&lt;LI&gt;Maxim 3: Know Your Data. How many observations are in there, what are the column (variable) attributes?&lt;/LI&gt;
&lt;LI&gt;Most important: the frequencies of psn_name. If you have 1000 "John Miller" in both datasets, you'll get a million "John Miller" observations in the utility file before the DISTINCT is applied&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 27 Apr 2021 07:59:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Insufficient-space-in-file-WORK-SASTMP-000000024-n-UTILITY/m-p/737184#M229789</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-04-27T07:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient space in file WORK.'SASTMP-000000024'n.UTILITY.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Insufficient-space-in-file-WORK-SASTMP-000000024-n-UTILITY/m-p/737185#M229790</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;many thanks for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) H:\ is an&amp;nbsp;external hard drive. is that OK?&lt;/P&gt;&lt;P&gt;2)&amp;nbsp;Process.Merge3_1:&amp;nbsp;3 variables *&amp;nbsp;2127026 obs.&lt;/P&gt;&lt;P&gt;Pat2020.Tls206_person:&amp;nbsp;7&amp;nbsp;variables * 77596670 obs ( but I only keep 3 variables in proc SQL).&lt;/P&gt;&lt;P&gt;3) Do you have some suggestion for this point? what should I do for a high frequent&amp;nbsp;&lt;SPAN&gt;psn_name?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 08:14:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Insufficient-space-in-file-WORK-SASTMP-000000024-n-UTILITY/m-p/737185#M229790</guid>
      <dc:creator>Alexxxxxxx</dc:creator>
      <dc:date>2021-04-27T08:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient space in file WORK.'SASTMP-000000024'n.UTILITY.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Insufficient-space-in-file-WORK-SASTMP-000000024-n-UTILITY/m-p/737192#M229795</link>
      <description>&lt;P&gt;If you get large cartesian joins, you need to find a way to make the join restrictive, e.g. join additionally on zipcodes or birth dates or ....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After all, the result in its current form would be massively inaccurate, from what I get about your data.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 08:41:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Insufficient-space-in-file-WORK-SASTMP-000000024-n-UTILITY/m-p/737192#M229795</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-04-27T08:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient space in file WORK.'SASTMP-000000024'n.UTILITY.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Insufficient-space-in-file-WORK-SASTMP-000000024-n-UTILITY/m-p/737194#M229796</link>
      <description>&lt;P&gt;If, by "external" you mean a USB drive, that will still be slower than a SATA internal disk. If you use a personal workstation, look for a good SATA SSD as a WORK drive. This is because the WORK (and UTILLOC) location has to do a lot of random disk accesses, while permanent libraries are used mostly to sequentially read and write datasets.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 08:45:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Insufficient-space-in-file-WORK-SASTMP-000000024-n-UTILITY/m-p/737194#M229796</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-04-27T08:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient space in file WORK.'SASTMP-000000024'n.UTILITY.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Insufficient-space-in-file-WORK-SASTMP-000000024-n-UTILITY/m-p/737199#M229800</link>
      <description>&lt;P&gt;The temporary sort files get created under utilloc. What do you get when running below two commands? Are they pointing to your disk with a lot of free space available?&lt;/P&gt;
&lt;PRE&gt;%put work:    %sysfunc(getoption(work));
%put utilloc: %sysfunc(getoption(utilloc));&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 09:34:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Insufficient-space-in-file-WORK-SASTMP-000000024-n-UTILITY/m-p/737199#M229800</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2021-04-27T09:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient space in file WORK.'SASTMP-000000024'n.UTILITY.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Insufficient-space-in-file-WORK-SASTMP-000000024-n-UTILITY/m-p/737202#M229802</link>
      <description>&lt;P&gt;hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;many thanks for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;1    %put work:    %sysfunc(getoption(work));
work:    C:\Users\70660\AppData\Local\Temp\SAS Temporary Files\_TD14308_DESKTOP-EF53L4G_
2    %put utilloc: %sysfunc(getoption(utilloc));
utilloc: WORK&lt;/PRE&gt;&lt;P&gt;I do not have &lt;SPAN&gt;a lot of free space available in C:\. Is there any method I can use to change temporary files or utilloc to a disk with&amp;nbsp;a lot of free space available?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 09:56:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Insufficient-space-in-file-WORK-SASTMP-000000024-n-UTILITY/m-p/737202#M229802</guid>
      <dc:creator>Alexxxxxxx</dc:creator>
      <dc:date>2021-04-27T09:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient space in file WORK.'SASTMP-000000024'n.UTILITY.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Insufficient-space-in-file-WORK-SASTMP-000000024-n-UTILITY/m-p/737205#M229803</link>
      <description>&lt;P&gt;thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there any method to change '&lt;SPAN&gt;WORK (and UTILLOC) location' to the other disk which has a large free space?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 09:59:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Insufficient-space-in-file-WORK-SASTMP-000000024-n-UTILITY/m-p/737205#M229803</guid>
      <dc:creator>Alexxxxxxx</dc:creator>
      <dc:date>2021-04-27T09:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient space in file WORK.'SASTMP-000000024'n.UTILITY.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Insufficient-space-in-file-WORK-SASTMP-000000024-n-UTILITY/m-p/737217#M229810</link>
      <description>&lt;P&gt;The WORK location is set at SAS start from the configuration or commandline.&lt;/P&gt;
&lt;P&gt;Follow this Knowledge Base article:&amp;nbsp;&lt;A href="https://support.sas.com/kb/19/247.html" target="_blank" rel="noopener"&gt;https://support.sas.com/kb/19/247.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 11:04:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Insufficient-space-in-file-WORK-SASTMP-000000024-n-UTILITY/m-p/737217#M229810</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-04-27T11:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient space in file WORK.'SASTMP-000000024'n.UTILITY.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Insufficient-space-in-file-WORK-SASTMP-000000024-n-UTILITY/m-p/737234#M229817</link>
      <description>Try batch process :&lt;BR /&gt;Make a run.bat which contains the following and double click run.bat &lt;BR /&gt;&lt;BR /&gt;"D:\SASHome\SASFoundation\9.4\sas.exe" -nosplash -sysin "c:\temp\temp.sas" -log "c:\temp\temp#Y#m#d-#H-#M-#s.log" -work  "c:\temp\"</description>
      <pubDate>Tue, 27 Apr 2021 12:24:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Insufficient-space-in-file-WORK-SASTMP-000000024-n-UTILITY/m-p/737234#M229817</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-04-27T12:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient space in file WORK.'SASTMP-000000024'n.UTILITY.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Insufficient-space-in-file-WORK-SASTMP-000000024-n-UTILITY/m-p/737436#M229897</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/262815"&gt;@Alexxxxxxx&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;many thanks for your reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;1    %put work:    %sysfunc(getoption(work));
work:    C:\Users\70660\AppData\Local\Temp\SAS Temporary Files\_TD14308_DESKTOP-EF53L4G_
2    %put utilloc: %sysfunc(getoption(utilloc));
utilloc: WORK&lt;/PRE&gt;
&lt;P&gt;I do not have &lt;SPAN&gt;a lot of free space available in C:\. Is there any method I can use to change temporary files or utilloc to a disk with&amp;nbsp;a lot of free space available?&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Ideally create the required space on your C drive by deleting "garbage" or by moving content to your H drive. For cleaning up running WinDirStats (link provided in previous post) normally gives you a good idea where there could be "garbage" - not the least left over SAS files from corrupted SAS sessions.&lt;/P&gt;
&lt;P&gt;The path for WORK and UTILLOC get assigned during SAS invocation and you can't change them anymore out of a running SAS session. You can of course change paths permanently in the .cfg but be aware that if your H drive then is once not available SAS will not work and that if pointing to a slower disk then SAS performance will deteriorate.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For a "one off" running stuff in batch as&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;suggests is eventually your way to go (if you really can't free up space on C) as here you can explicitly define any parameter - i.e.&amp;nbsp; -work "H:\SAS_work"&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 21:07:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Insufficient-space-in-file-WORK-SASTMP-000000024-n-UTILITY/m-p/737436#M229897</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2021-04-27T21:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient space in file WORK.'SASTMP-000000024'n.UTILITY.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Insufficient-space-in-file-WORK-SASTMP-000000024-n-UTILITY/m-p/737446#M229907</link>
      <description>&lt;P&gt;Utility files do no go to the WORK library. They go to the UTILLOC path. See &lt;A href="https://support.sas.com/kb/39/705.html" target="_self"&gt;here&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;As&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;said, putting this path or the WORK path on a slow drive might allow for more space, but will kill your speed.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 21:26:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Insufficient-space-in-file-WORK-SASTMP-000000024-n-UTILITY/m-p/737446#M229907</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-04-27T21:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient space in file WORK.'SASTMP-000000024'n.UTILITY.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Insufficient-space-in-file-WORK-SASTMP-000000024-n-UTILITY/m-p/737449#M229910</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt; Is there any method I can use to change temporary files or utilloc to a disk with&amp;nbsp;a lot of free space available?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can do that by changing the config file, or adding invocation options as shown:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;C:\sas\sas.exe -work=c:\temp&amp;nbsp; -utilloc=c:\temp&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;See &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lesysoptsref/p1texr4rxo0ipyn1ovajj11raccx.htm" target="_self"&gt;here&amp;nbsp;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 21:30:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Insufficient-space-in-file-WORK-SASTMP-000000024-n-UTILITY/m-p/737449#M229910</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-04-27T21:30:58Z</dc:date>
    </item>
  </channel>
</rss>

