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
Of all your work, where have you been the most successful?
Difference between nodup and nodupkey options?
What is the maximum length of the macro variable?
What are the parameters of scan function?
What is a macro routine?
what is SAS OPTIMIZATION?
Describe crosslist option in tables statement?
Explain how you can debug and test your SAS program?
what has been your most common programming mistake? : Sas programming
How to create an external dataset with sas code?
Explain translate function?
Explain the difference between informat and format with an example.
What is a pdv and what are its functions?
What are the difference between sas functions and procedures?
what is hash files in sas and why we are using this one in sas?