BookmarkSubscribeRSS Feed
Marilyn
Calcite | Level 5
2. Use as much criteria as possible in the selection of rows. Every addition to the where clause will shrink the resultant rows.

3. Use correlated queries to combine mulitple years.


I am trying to make my code as efficient as possible since I deal with huge datasets, but I'm new and don't really know what works best.
3 REPLIES 3
LinusH
Tourmaline | Level 20
Number 1 seems to be missing...?
Number 2 is obvious.
Number 3 depends on your data and what type of result you are looking for. Need more information (like sample input/output data) to comment on that one.

/Linus
Data never sleeps
GertNissen
Barite | Level 11
A candidate for rule number 1 could be : select/keep only the variables you need
mojerry
Calcite | Level 5
yeah, golden rules 😉

1. Select only the data you really need. So select the needed columns and create a where close who gives you only the relevant data.

2. If working on huge data, indexes can be usefull. Too complicated indexes will kill your performance.

3. Use the right formats on datasets. $200. isn't usefull to store yes or no. Same idea on numbers, don't store them as text 😉

4. data is stored on other disk than your sas work.

5. go on...

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 758 views
  • 0 likes
  • 4 in conversation