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 function CATX syntax does?
What are the different operating system platforms in which we can use sas? : sas-grid-administration
What is the difference between reading data from an external file and reading data from an existing data set?
Describe the function and utility of the most difficult SAS macro that you have written?
how do you test for missing values? : Sas programming
for what purpose would you use the retain statement? : Sas programming
Explain what is SAS informats?
which features do you use to check the data validations and errors? : Sas-administrator
What do the PUT and INPUT functions do?
do you prefer proc report or proc tabulate? Why? : Sas programming
i want for interview question & answer plz it need immediate send t my mail raviprakashmot@gmal.cm
What is the SAS data set?
What Proc glm does?
Which command is used to save logs in the external file?
Name validation tools used in SAS