what is the need of INDEX in datasets?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
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 |
what is information maps?
how to read the variables in sas? : Sas-administrator
Does SAS ‘Translate’ (compile) or does it ‘Interpret’? Explain.
what the use of proc glm
What are the statements that are executed only?
what does .. meant in sas macros
data study; input Subj : $3. Group : $1. Dose : $4. Weight : $8. Subgroup; x= input(Weight,5.1); datalines; 001 A Low 220 2 002 A High 90 1 003 B Low 193.6 1 004 B High 165 2 005 A Low 123.4 1 ; Why does X get truncated? X shows up as 22 instead of 220,9 instead of 90 and 19.8 instead of 198? This problem doesnt happen with the values 193.6 and 123.4. This does not happen if x is read on the 5. informat instead of the 5.1 informat
What does P-value signify about the statistical data?
What is the one statement to set the criteria of data that can be coded in any step?
it will become easy if uuu provide website linkssss and list of consultanciessssss
When merging 2 datasets with a common variable (not merge key), how to keep both?
Write a SAS macro to calculate number of numbers in an email address