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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

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