BookmarkSubscribeRSS Feed
rahgonda
Calcite | Level 5

Several proc sort procedures in my code properly sort datasets with a large number of observations (30 million +). However, once it reaches a certain dataset, the proc sort stalls. The program doesn't crash, the log doesn't update, and the dataset doesn't sort. The locked outfile file appears in the output libname location, however the size is 0 kbs. This is a simple procedure: proc sort, by variables, and run command.  This dataset is quite larger than the others, but not by much. The by variables exist and have normal values. Any clue as to what may be happening?

Thanks!

Rahul

4 REPLIES 4
Patrick
Opal | Level 21

"The program doesn't crash, the log doesn't update.."  How do you know that the process has finished?

art297
Opal | Level 21

FWIW: If you are on a Window's server, and your data are on a different drive than the one where you have SAS installed, you may want to try moving the file onto the same drive where SAS is installed and trying it from there.  I.e., it may be a Window's problem!

ballardw
Super User

If the data is large you may want to investigate options such as TAGSORT or options that depend on your OS.

Amir
PROC Star

Hi,

Maybe try running the sort with fewer records to see if there isn't something other than the size causing the long response, E.g.:

proc sort data=have(obs=100)

          out=want;

  by var1;

run;

Regards,

Amir.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 4 replies
  • 1799 views
  • 0 likes
  • 5 in conversation