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.
-------------------------------------------------------------------------
Four tips to remember when you contact SAS Technical Support
Tricks for SAS Visual Analytics Report Builders
SAS Visual Analytics Learning Center
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.
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.
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.
Ready to level-up your skills? Choose your own adventure.