what is the need of INDEX in datasets?

Answers were Sorted based on User's Feedback



what is the need of INDEX in datasets?..

Answer / 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

what is the need of INDEX in datasets?..

Answer / abhilash

by using index we search a particular string or sub string
it returns the position where the sub string is located
for ex:
data index;
name="india is greatest country";
idx-index(name,"great");
run;
it returns the great sub string position(10)

Is This Answer Correct ?    6 Yes 1 No

what is the need of INDEX in datasets?..

Answer / guest

Generally SAS reads The obseravtions in sequentiall manner.
it takes a lot of time .to aviod this we are using index.
ithis index concept usefull when we dealing with large
datsets.

Is This Answer Correct ?    2 Yes 0 No

what is the need of INDEX in datasets?..

Answer / hari

This is mainly useful for the fast retrival of data (For ex
we have 559 in 1 lac obs then by index we can get the data
with out reading all the observations

Index are 2 type:

1.simple
2.Composite


ex-for simple


proc datasets lib=college;
modify time;
index create class;
run;


ex-for composite:


proc datasets library=college;
modify time;
index create names(=(name school);
run;

Is This Answer Correct ?    1 Yes 0 No

what is the need of INDEX in datasets?..

Answer / sushil kumar

Index Function is used to search a Character in a String and returns position of the String

Is This Answer Correct ?    1 Yes 0 No

what is the need of INDEX in datasets?..

Answer / dvsr

Without index if we executed the query it will go to the
full table scan. If any data set or table has the index
first query checks that particular If condition or where
condition in that column then it will go to the remaining
columns.

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More SAS Interview Questions

What are the different servers in sas? : sas-grid-administration

0 Answers  


Can you calculate the mean, median and mode of the following data set using data step logic? Don't use any function or procedure. data a; input age @@; datalines; 22 32 32 32 43 23 24 56 45 54 28 29 27 26 25 28 30 20 18 37 36 47 46 56 19 20 ; run; I have calculated the mean which i have posted in the answer section.

6 Answers   HSBC,


Assuming {et} is randomly drawn from N(0,1) and e0 = 0, generate 200 observations of xt = et − 0.5e(t−1) and draw a line graph of xt.

0 Answers  


What are the different versions of sas that you have used until now? : sas-grid-administration

0 Answers  


Why do we use QUIT commmand for proc datasets and proc sql ???

3 Answers  


1.we can execute a macro with in a macro,by using call symput and symget can any one give me one example? 2.We can create the macro variables by using %let,%do,macro parameters,INTO clause in proc sql and call symput, can any one give me example to create macro variable with INTO clause and call symput? 3.

1 Answers  


If you need the value of a variable rather than the variable itself what would you use to load the value to a macro variable?

3 Answers  


what is AE onset date and what is RDS?

4 Answers   Accenture,


Why is SAS considered self-documenting?

1 Answers   Quintiles,


There are 200 observations in a dataset, i want to pull out the observation no's 100, 150,180,190 by using Proc SQL? How you can get it?

5 Answers  


Explain how you can debug and test your SAS program?

0 Answers  


How will you generate test data with no input data?

0 Answers  


Categories