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

What is a pdv and what are its functions?

789


How would you code a macro statement to produce information on the sas log? This statement can be coded anywhere? : sas-macro

792


What sas features do you use to check errors and data validation?

953


What do the mod and int function do? : Sas programming

817


Mention what are the data types does SAS contain?

909


What is the order of application for output data set options, input data set options and SAS statements?

1297


What are the default statistics that proc means produce?

789


What are common programming errors committed in sas

891


How we can create SAS USER DEFINED CODE?

1836


In ARRAY processing, what does the DIM function do?

909


Name types of category in which SAS Informats are placed?

925


how can you create zero observation dataset? : Sas programming

873


What is a put statement?

917


What are the uses of sas?

904


State the difference between INFORMAT and FORMAT ?

811