what is the need of INDEX in datasets?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between using drop = data set option in set and data statement?

682


Explain why double trailing @@ is used in input statement?

572


What are the different operating system platforms in which we can use sas? : sas-grid-administration

589


explain the use of % includes a statement in sas? : Sas-administrator

547


What is the use of divide function?

600






What do you know about sas and what we do? : sas-grid-administration

599


how to generate the test data in sas without input data? : Sas-administrator

578


How to create an external dataset with sas code?

588


How to create list output for cross-tabulations in proc freq?

618


what is sas enterprise intelligence architecture? : Sas-bi

544


How might you use MOD and INT on numeric to mimic SUBSTR on character Strings?

748


What do the sas log messages “numeric values have been converted to character” mean? What are the implications?

715


what is the difference between unique key and primary key? : Sas-di

594


What are the difference between sas functions and procedures?

640


what does the run statement do? : Sas programming

556