BookmarkSubscribeRSS Feed
tarheel13
Rhodochrosite | Level 12

I'm trying to run a query in DM SAS or SAS OnDemand for Academics. Dataset is over 750,000 rows. It takes a really long time to run. Is there a faster way to run this? 

4 REPLIES 4
ballardw
Super User

Show the code of the query you are trying to run.

Best would be to show from the LOG the actual code plus any messages.

 

That way we have a chance of seeing some of the common inefficiencies in the code.

Also I would expect On Demand for Academics to possibly have performance issues with largish data sets as there are I believe some default file size limits and unless your 750,000 rows consist of very few variables you may be hitting that.

 

And define "really long time". 5 minutes? 15 minutes? hours?

ChrisNZ
Tourmaline | Level 20

Also show the proc contents for that data set.

tarheel13
Rhodochrosite | Level 12

Hey guys I figured it out. Ran faster once I filtered on more things in the where clause. 

mkeintz
PROC Star

@tarheel13 wrote:

Hey guys I figured it out. Ran faster once I filtered on more things in the where clause. 


Good.  Mark your response as a solution - that will let viewers know the status.

--------------------------
The hash OUTPUT method will overwrite a SAS data set, but not append. That can be costly. Consider voting for Add a HASH object method which would append a hash object to an existing SAS data set

Would enabling PROC SORT to simultaneously output multiple datasets be useful? Then vote for
Allow PROC SORT to output multiple datasets

--------------------------

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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