Difference Between Scan and Substr

Answers were Sorted based on User's Feedback



Difference Between Scan and Substr..

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

Difference Between Scan and Substr..

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

Post New Answer

More SAS Interview Questions

what is data integration? : Sas-di

0 Answers  


Name statements that function at both compile and execution time.

3 Answers   L&T,


What are the differences between sum function and using “+” operator?

0 Answers  


Can you suggest us materials for sdtm mapping?

0 Answers   TCS,


What other SAS features do you use for error trapping and data validation?

2 Answers  






is QUALCOMM using SAS ?

1 Answers  


What are some problems you might encounter in processing missing values? In Data steps? Arithmetic? Comparisons? Functions? Classifying data?

1 Answers   Quintiles,


how do u identify a macro variable

5 Answers  


Mention what is the difference between nodupkey and nodup options?

0 Answers  


What is the difference between informat and format statement?

1 Answers  


how do you derive descriptive statistics?

1 Answers   Accenture, Quintiles,


State the difference between INFORMAT and FORMAT ?

0 Answers  


Categories