Answer Posted / yachna
There is only one difference between Scan & Substr..Just look at below example
eg. String = rajesh chauhan
If we want first four letter of the string then we can use Substr function here not scan..Scan function can pick first word.
SubName=Substr(String,1,4);
ScanName=Scan(String,1,' ');
Subname = raje
ScanName=rajesh
| Is This Answer Correct ? | 18 Yes | 1 No |
Post New Answer View All Answers
Explain the special input delimiters used in sas programming.
What are the ways to do a “table lookup” in sas?
how does sas handle missing values in a merge? : Sas programming
How do dates work in SAS data?
What is factor analysis?
what are sas bi dashboard components? : Sas-bi
what is SAS OPTIMIZATION?
How do you connect the desktop application to metadata server? : sas-grid-administration
Mention the validation tools used in SAS?
What is a pdv and what are its functions?
which date function advances a date, time or datetime value by a given interval? : Sas programming
What are the default statistics that proc means produce?
describe the interaction table in sas di? : Sas-di
How would you identify a macro variable? : sas-macro
how do the in= variables improve the capability of a merge? : Sas programming