BookmarkSubscribeRSS Feed
norafateh
Calcite | Level 5

I've been working with large datasets, and I'm looking for tips and techniques to optimize performance. Specifically, I'm interested in strategies for improving processing speed and efficiency.

Any insights or best practices from your experiences would be greatly appreciated.

3 REPLIES 3
PaigeMiller
Diamond | Level 26

How large is "large"? How many rows? How many columns?

 

Different types of processing may require different optimization strategies. What processing are you doing?

 

Some things are always a good idea. For example:

  • Drop columns that are not needed
  • Pass through the data as few times as possible (I see people do a PROC SQL to extract data followed by another PROC SQL on the extracted data to add one new column which is a mathematical operation, like addition, of columns; this could be done all in one SQL)
  • Use SAS procedures whenever possible, rather than writing your own code to do something (I see people writing their own code to compute an average, and sometimes get it wrong)
  • Use BY processing whenever possible rather than loops 

I'm sure there are other good ideas to improve the speed at which your program executes.

 

And do your best to learn and follow these rules: https://communities.sas.com/t5/SAS-Communities-Library/Maxims-of-Maximally-Efficient-SAS-Programmers...

--
Paige Miller
LinusH
Tourmaline | Level 20

Other tips:

  • Have the data stored on high speed storage
  • Create indexes for columns common for filtering
  • Move the data to a SPDE library
  • Move the data to a external high speed  (for querying) database
Data never sleeps
PaigeMiller
Diamond | Level 26

Unfortunately, the acronym SPDE means nothing to me.

--
Paige Miller

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
  • 3 replies
  • 1229 views
  • 0 likes
  • 3 in conversation