BookmarkSubscribeRSS Feed
ScottBass
Rhodochrosite | Level 12

Hi,

I think the answer is "No", but just checking...

Is there a way to get EG to add the _method option to SQL queries?  This is for an end user query, where they point and click rather than hand write code.

I'm modifying an end users project to get it to run faster, and want to know if SQL is using an index in a left join.  msglevel is set to "I".

Regards,

Scott


Please post your question as a self-contained data step in the form of "have" (source) and "want" (desired results).
I won't contribute to your post if I can't cut-and-paste your syntactically correct code into SAS.
1 REPLY 1
LinusH
Tourmaline | Level 20

MSGLEVEL=I should be sufficient for exploring index usage.

If you get no INFO: line, index is not used.

And no, I haven't found a standard way to add PROC SQL options to query builder. But how often is this necessary? It isn't that inconvenient to copy the SQL code, and add the _method manually.

Data never sleeps

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1102 views
  • 0 likes
  • 2 in conversation