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 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 9 replies
  • 38036 views
  • 1 like
  • 6 in conversation