BookmarkSubscribeRSS Feed
Jyuen204
Obsidian | Level 7

I have a script in which I applied an Index. I noticed that in a production run while monitoring the job that when the index is applied the logs are massive

 

246 +proc sql;
247 +create index CUST_ID on CTC_TB(CUST_ID);
INFO: Multiple concurrent threads will be used to create the index.
NOTE: Simple index CUST_ID has been defined.
248 +run;

 

I pulled the above from the log where it cerates the index.

After that, when it runs the part of the script where it utilized the index i get pages upon pages of this:

 

INFO: Index CUST_ID selected for WHERE clause optimization.
INFO: Use of index CUST_ID for WHERE clause optimization canceled.
INFO: Index CUST_ID selected for WHERE clause optimization.
INFO: Use of index CUST_ID for WHERE clause optimization canceled.
INFO: Index CUST_ID selected for WHERE clause optimization.


The code runs and all. But I just wanted to know if this was normal or if I am applying the index inefficiently/incorrectly.

TIA!

2 REPLIES 2
LinusH
Tourmaline | Level 20

Is it possible to share the log for the step that queries the table?

Data never sleeps
Jyuen204
Obsidian | Level 7
I have a table i have built with a few thousand records. I created the index on the key I am matching against. The table I am matching against is a Table in our EDW. Nothing fancy in other words just :
Create table XYZ
as
Select a.* from EDW.TABLE as A
inner join MYTABLE as B
where a.COA = b.COA;
quit;

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 2 replies
  • 418 views
  • 0 likes
  • 2 in conversation