BookmarkSubscribeRSS Feed
ZhibinHuang
Fluorite | Level 6

Hello,

 

I have a file of 9GB size. I tried to sort it on SAS U Edition. But it said "No disk space is available for the write operation." On the other hand, when I tried a smaller file, it run perfectly.

 

My computer is Mac OS 10.13.6 (17G3025), I have 150GB available space on my disk. I also set enough space on VM.

 

I don't know how to solve this problem and I also don't know is it true that the SAS U Edition only allow 5GB space for user.

 

Part of the code:

 

/* hg is my database name */

 

83 proc sort data=hg.hg01merged out=hg.newmh reverse;
84 by party_id company country shipment tel;
85 run;
 
ERROR: No disk space is available for the write operation. Filename =
/tmp/SAS_util000100000978_localhost.localdomain/ut0978000005.utl.
ERROR: Failure while attempting to write page 693 of sorted run 8.
ERROR: Failure while attempting to write page 44968 to utility file 1.
ERROR: Failure encountered while creating initial set of sorted runs.
ERROR: Failure encountered during external sort.
ERROR: Sort execution failure.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: There were 7943553 observations read from the data set HG.HG01MERGED.
WARNING: The data set HG.NEWMH may be incomplete. When this step was stopped there were 0 observations and 31 variables.
NOTE: PROCEDURE SORT used (Total process time):
real time 53.72 seconds
cpu time 44.25 seconds
 
 
Thanks.
 

 

13 REPLIES 13
Reeza
Super User
Where do you set the VM to a particular size? I recall settings for RAM and COREs but not for size, so curious as to how you : "set enough space on VM"?

Here's some instructions on working around the size limitations in SAS UE. This is in draft so let me know if something is wrong or not working.

https://github.com/statgeek/SAS-Tutorials/blob/master/SAS%20UE%20-%20How%20to%20work%20with%20big%20...
ZhibinHuang
Fluorite | Level 6

Sorry for confusing. I set RAM as 10240MB and core 2 CPUs.

Reeza
Super User
RAM isn't usually SAS limitation but you need three times the file size to sort, which would be 18GB so you need to redirect your work library. At least it's worth the try. Make sure to change your libname references in your code as well.
ZhibinHuang
Fluorite | Level 6

I already created my own library by the code below, but it still doesn't work.

 

libname HG '/folders/myfolders/';
options user = HG;

 

 

even I create a new share folder called "newfolder" and redo it. Nothing different.

libname HB '/folders/myshortcuts/newfolder/';
options user = HB;

 

 

 

 

Reeza
Super User
If you've had SAS terminate due to large file sizes you often need to either manually find all the leftover files and clean it up - hard with the lockdown setup or re-install the VM itself. I haven't had anyone say this approach doesn't work, so if it doesn't, I'd be very curious to know that.
ChrisNZ
Tourmaline | Level 20

To have more disk space in a VM, you need to either add virtual disks or point to a shared folder sitting on the host OS.

I don't have UE so I am unsure if this is possible.

As @Kurt_Bremser mentionned, UE is not meant to process real-world data, so SAS may well have limited it.

Reeza
Super User

@ChrisNZ you can point to a folder on the OS, but you cannot change the size/setup of VM besides RAM (machine limited) and # of cores (max=2).

ZhibinHuang
Fluorite | Level 6

Thanks. But where can I get the normal edition of SAS? I can't find it on the web.

Reeza
Super User
It's a paid product, and not cheap. If you're a student you can usually get a version from your University at a steep discount, which means somewhere between $0 to $100 usually.
SASKiwi
PROC Star

@ZhibinHuang - You won't find it on the web. To get the "normal" version of SAS you need to contact your SAS account manager, purchase a SAS licence, then a SAS software order will be emailed to you from which you can download the software. 

ZhibinHuang
Fluorite | Level 6

Yes I am a student. Thank you so much.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 13 replies
  • 3850 views
  • 0 likes
  • 5 in conversation