Learning SAS? Welcome to the exclusive online community for all SAS learners.

Code running slow in SAS

Reply
Regular Learner
Posts: 1

Code running slow in SAS

I have been analyzing the NSDUH data sets. I have used my editor files on several occasions before and it worked perfectly fine until recently.

 

Reading in a permanent (combined 10 year data set) in to a work file on SAS is now taking several hours. It worked fine a month ago but I seem to be having problems now despite not making any changes to the file or the data sets in the folders.

 

What do I do to fix this?

 

Super User
Posts: 20,219

Re: Code running slow in SAS

Are you using SAS Studio/SAS UE or a different version? If a different version, please elaborate.

Super User
Posts: 11,552

Re: Code running slow in SAS

Where are the files you are reading? On your local hard drive or a network location? You may have network connectivity issues.

 

Are you re-reading the same files? If so, STOP IT!. Learn how to create a permanent library and read the files into that library. Then the next session you just need to make sure the library is active and use the data set.

 

Or are you now reading much larger files?

 

Showing code used is often helpful.

Ask a Question
Discussion stats
  • 2 replies
  • 137 views
  • 0 likes
  • 3 in conversation