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...

what is the difference between x=substr(name,1,2);
and substr(name,1,2)='x';

Answer Posted / oanhntt

x=substr(name,1,2) means you assign x value equal to the
first 2 characters of variable "name" while
substr(name,1,2)='x' just compare these fist 2 characters to
value 'x', so this seem useless without condition syntax
(correct one should be: if substr(name,1,2)='x' then /*do
some thing*/;).

Is This Answer Correct ?    4 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to test the debugging in sas?

1126


i want for interview question & answer plz it need immediate send t my mail raviprakashmot@gmal.cm

2335


What are pdv and it functions?

1064


what is sas business intelligence? : Sas-bi

1116


Explain proc univariate?

984


hi here is a problem can anybody solve this? i want to report the data through third party file. by using data _null_ or proc report or macro automation process. but i want to insert the 'titles and footnotes' in between the data and also starting of 2nd and ending of 2nd and starting of 3rd and ending of the 3rd page. tell me how and write the code?

2072


Describe the function and untility of the most difficult SAS macro that you have written.

2165


Name few SAS functions?

1048


what is the purpose of _error_? : Sas programming

1090


Explain the difference between using drop = data set option in set and data statement?

1120


what is slowly changing dimension? : Sas-di

1082


How to sort in descending order?

1214


What are the data types does SAS contain?

1065


What makes sas stand out to be the best over other data analytics tools?

1018


Explain why double trailing @@ is used in input statement?

1022