Difference Between Scan and Substr
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / sudhir kumar
Both are function scan function Extracts nth position word
from string separated key dlm if n is -ve then starts at
end. and substr function extracts char string from start
position and with length .
| Is This Answer Correct ? | 9 Yes | 0 No |
If you use a symput in a data step, when and where can you use the macro variable? : sas-macro
Do you need to know if there are any missing values?
what is PhaseIII, ODS, TLG, Macro and Proc in SAS
How many tiers in sas architecture?
SAS using companies in chennai
Do we follow ADAM in analysis dataset development?How? Usually which version? Why is it necessary?
How can a SAS WEB REPORT STUDIO USER identify which report tabs they have been permitted without entering the SAS WEB REPORT STUDIO
What do the put and input function do?
Which statement does not perform automatic conversions in comparisons?
If you set a label in the data step and call a proc freq on the data, how do you display the data without the labels and just the variables.
Name statements that are execution only?
Is it possible to do sorting tranformation in charecter variable??if can tell me one eg..