BookmarkSubscribeRSS Feed
Madelyn_SAS
SAS Super FREQ

If there is an appropriate index and the SQL optimizer determines that using the index will improve performance, the SQL optimizer uses the index without being told to do so. The optimizer is not 100% correct in every case. Although there are SQL commands that will force the use of an index, you do not have control over the PROC SQL that is automatically generated by the query layer used by Web Report Studio. 

Dominik4
Fluorite | Level 6

Thank you for all that feedback.

 

Its a pitty that I dont have control over the named strip function. Off course the SQL optimizer does not choose an index if the statement contains a strip function in the where condition.

 

But I found a some kind of workaround. Predefining the same Filter in Maps does not cause the strip function and so the index is working then. 

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 16 replies
  • 7017 views
  • 3 likes
  • 4 in conversation