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 the order of evaluation of the following operators + - * / ** () ???

2 Answers  


Explain bmdp procedure?

0 Answers  


how can you get the single data set from the library(which has the number of data sets)?

3 Answers   Accenture, Deloitte,


which domain is better in sas? clinical trails or banking

3 Answers  


if you were told to create many records from one record, show how you would do this using array and with proc transpose? : Sas programming

0 Answers  


What are the 3 components in sas programming?

0 Answers  


What system options would you use to help debug a macro? : sas-macro

0 Answers  


Enlist the functions performed by sas.

0 Answers  


What is _n_?

22 Answers  


what is the Population you used in your project, is it ITT or PP?

0 Answers   Accenture, Quintiles,


hi tell be about pfizer? how to compare the work with other companies ? please tell me how to login and work also?

0 Answers   Pfizer,


what is sas? is a package or tool? give me introduction about sas?

11 Answers   Accenture,


Categories