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

Hi  I am having this issue running SAS

"OUT OF RESOURCES Select"

-R. Retry

-N Tell procedure/DATA step no more resources

-C Cancel Submitted Statement

- T. Terminate SAS

What is wrong with my SAS?

PLease Help

1 ACCEPTED SOLUTION

Accepted Solutions
shivakrishna
Fluorite | Level 6

the below code will helps to you delete all datasets in work library.

proc datasets library=work kill;

run;

make sure before delete it, if you no need any datasets under in work library.

if you want to delete only particular datasets means then you can use below code for delete.

proc datasets library=work;

delete <DSN>;

run;

Shiva

View solution in original post

9 REPLIES 9
SASKiwi
PROC Star

You have run out of disk space that SAS requires for either temporary dataset processing or for creating permanent datasets.

Check the location of the SAS dataset being written when the error occured. If it is your PC check your hard drive for free space available. Try and free up space by deleting files you no longer need. You may find that SAS has not deleted old temporary datasets (where your WORK libname points to) so you need to clean this up yourself.

If remote drives are involved try to free up some space also.

desireatem
Pyrite | Level 9

Is there a SAS statement that I can use to delete the temporary files or how to Do that?

shivakrishna
Fluorite | Level 6

the below code will helps to you delete all datasets in work library.

proc datasets library=work kill;

run;

make sure before delete it, if you no need any datasets under in work library.

if you want to delete only particular datasets means then you can use below code for delete.

proc datasets library=work;

delete <DSN>;

run;

Shiva

desireatem
Pyrite | Level 9

Thanks Shiva

trethlus
Calcite | Level 5

Greetings,

when i try to run
"proc datasets library=work kill;

run;"

as you have listed earlier, the same OUT OF RESOURCES error pops up again. 

Would you kindly explain what I am doing wrong/how I can possibly fix this? Would I need to start over from scratch?

(I do not have access to documents folders or other settings since the SAS license is on a school computer.)

shivakrishna
Fluorite | Level 6

welcome..

Sulaiman
Calcite | Level 5

Thank you. your code saved my time.

Sulaiman
Calcite | Level 5

Thanks

aminkarimid
Lapis Lazuli | Level 10

You can visit the web site which is showed below:

http://support.sas.com/kb/24/548.html

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 9 replies
  • 36274 views
  • 1 like
  • 6 in conversation