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 / ganesh
Scan function the best for locating the particular word
specified in a argument,scan function default length is
200bytes.
data k;
r='ganesh kumar';
u=scan(r,2);
proc print;
run;
result: kumar
| Is This Answer Correct ? | 10 Yes | 7 No |
Post New Answer View All Answers
Explain the purpose of retain statement.
where to use sas business intelligence? : Sas-bi
What are the features of base sas system?
I have 3 years of work experience at a startup and recently got certified in Data Science with SAS. I need to know how to get into the analytics industry
How to limit decimal places for the variable using proc means?
What is the difference between order and group variable in proc report?
Explain why double trailing @@ is used in input statement?
How can sas program be validated?
explain what is data set in sas? : Sas-administrator
What do the sas log messages “numeric values have been converted to character” mean? What are the implications?
Mention some common errors that are usually committed in sas programming.
Do you need to compute new variables? If so,should you do this before you execute the report-writing procedure?
How would you define the end of a macro? : sas-macro
what are _numeric_ and _character_ and what do they do? : Sas programming
what is the difference between nodup and nodupkey options? : Sas programming