BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Khaladdin
Quartz | Level 8

Hi all,

I need to use PROC.SQL statements for my analysis. The problem is, SAS uses C disk in order to create temporary files when I use SQL statements. My datasets are very large and I do not have enough space for that. Could you please explain me how to allocate this temporary file in other place rather than C disk?

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

Note that the solution you've linked to is a permanent change for where your WORK directory is stored. If that post answered your question, please mark it as the solution.

View solution in original post

7 REPLIES 7
Khaladdin
Quartz | Level 8
how to use it?
Reeza
Super User

The C drive is used when you're either

1. Accessing a DBMS but using functions that are not supported on the DBMS

2. Using data both in SAS and on the server - the data is then brought down the server to be processed. 

3. All your data is local. 

 

Identify which situation you're in first. 

If #3, there aren't any workarounds. 

If its 1/2 you can modify your query so that it's processed on the server instead. 

SASKiwi
PROC Star

One workaround is to compress your SAS datasets at the expense of slowing your programs down a bit. Put this at the start of your program. If you are lucky it might give you enough space to complete your job successfully. At the end of the day you may still need to put another hard drive in your PC. Warning - don't write SAS temporary files to a network drive unless you want your programs to run forever and seriously annoy IT administrators.

 

options compress = binary;

 

Reeza
Super User

Note that the solution you've linked to is a permanent change for where your WORK directory is stored. If that post answered your question, please mark it as the solution.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 7 replies
  • 961 views
  • 1 like
  • 4 in conversation