what is the need of INDEX in datasets?

Answer Posted / aravind9882

index is separate file attached to dataset.
create index on variable that is used in 'by processing'
or 'where processing'.
it will enhance the performance and fast retrieving the
observations when you use indexed variable in where
statement.
you need not to sort the variable if it is indexed when u
use it in "by statement".
create an index on variable when:
-u have to retrieve observations not more than 15% of d
dataset.
-create index on variable where 'by-variable' will have
more than 8 disctint values.

index is of two types:
simple index-created on single variable.
composite index-created on 2 or more variables.
index can b created using proc datasets, proc sql and
datastep.

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between %local and %global? : sas-macro

668


What is run-group processing?

624


How you are maintaining sas programmes in your company...any specific version control software you are using? If so, tell me the name?

1581


Explain the purpose of substr functions in sas programming.

564


In sas admin differentiate between roles and capabilities? : sas-grid-administration

556






what is the difference between infile and input? : Sas-administrator

609


How can you create a macro variable with in data step? : sas-macro

576


In SAS explain which statement does not perform automatic conversions in comparisons?

801


Differentiate between proc means and proc summary.

604


WHAT IS SAS WEB SERVICE and what are the steps to create an xml service ?

2265


What system options would you use to help debug a macro? : sas-macro

639


how do you debug and test your sas programs? : Sas programming

561


What does the trace option do?

666


How can I remove header from output data set?

2066


how does sas handle missing values in formats? : Sas programming

581