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 |
how do we mail reports from SAS environment to our team leader
how are numeric and character missing values represented internally? : Sas programming
What is SAS Information Map Studio and its purpose ?
what is the one statement to set the criteria of data that can be coded in any step? : Sas programming
how to read raw data in sas. Do it manually and throw the programming.
Approximately what date is represented by the SAS date value of 730?
explain the use of % includes a statement in sas? : Sas-administrator
what is SAS ACCESS AND SAS CONNECT ? Give an example and data statements used.
How to Rename Library?
How would you include common or reuse code to be processed along with your statements?
Name and describe three SAS functions that you have used, if any?
What is the role of administrative users? : sas-grid-administration