When looking for data contained in a character string of 150
bytes, which function is the best to locate that data: scan,
index, or indexc?
Answer Posted / jothi sankar
INDEX is best one. Is for getting location of mentioned
data.
Eg:
str1 = 'Hi i am fine here. how are u there ? .....';
str2 = index(str1,'how'); --> str2 = 20
SCAN is to get a substring upto mentioned character
INDEXC to locate only for mentioned one or more single
character
| Is This Answer Correct ? | 5 Yes | 5 No |
Post New Answer View All Answers
What is your favorite all time computer book? Why?
What does proc print, and proc contents are used for?
If you use a symput in a data step, when and where can you use the macro variable? : sas-macro
What is a macro routine?
do you prefer proc report or proc tabulate? Why? : Sas programming
What are SAS/ACCESS and SAS/CONNECT?
What are the different types of sas functions?
How do you use the do loop if you don’t know how many times you should execute the do loop?
How many ways to overcome a missing values???
Mention what is SAS data set?
What is the SAS data set?
what other sas products have you used and consider yourself proficient in using? : Sas programming
What are the different versions of sas that you have used until now? : sas-grid-administration
i want for interview question & answer plz it need immediate send t my mail raviprakashmot@gmal.cm
What is a method for assigning first.VAR and last.VAR to the BY group variable on unsorted data?