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
What do you code to create a macro? : sas-macro
Explain what Proc glm does?
Can you execute a macro within a macro? Describe. : sas-macro
what is the difference between unique key and primary key? : Sas-di
what is program data vector? : Sas-administrator
What is the maximum length of the macro variable? : sas-macro
In ARRAY processing, what does the DIM function do?
what is sas metadata server? : Sas-di
describe about metadata object? : Sas-di
Explain substr function?
What can you learn from the SAS log when debugging?
what is the difference between nodup and nodupkey options? : Sas programming
what do the mod and int function do? What do the pad and dim functions do? : Sas programming
How to create an external dataset with sas code?
how the sas basic syntax style described? : Sas-administrator