Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Difference Between Scan and Substr

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


Please Help Members By Posting Answers For Below Questions

What do you code to create a macro? : sas-macro

1141


Explain what Proc glm does?

1217


Can you execute a macro within a macro? Describe. : sas-macro

1111


what is the difference between unique key and primary key? : Sas-di

1132


what is program data vector? : Sas-administrator

1076


What is the maximum length of the macro variable? : sas-macro

1094


In ARRAY processing, what does the DIM function do?

1178


what is sas metadata server? : Sas-di

1107


describe about metadata object? : Sas-di

1071


Explain substr function?

1113


What can you learn from the SAS log when debugging?

1385


what is the difference between nodup and nodupkey options? : Sas programming

1192


what do the mod and int function do? What do the pad and dim functions do? : Sas programming

1171


How to create an external dataset with sas code?

1158


how the sas basic syntax style described? : Sas-administrator

1019