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

Enlist the functions performed by sas.

1128


How can sas program be validated?

1041


What Proc glm does?

1091


Differentiate between proc means and proc summary.

1064


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

1112


Give some examples where proc report’s defaults are same as proc print’s defaults?

1113


What are the different types of sas functions?

1286


how do you test for missing values? : Sas programming

1060


How you can read the variables that you need?

1125


what is the use of sas management console? : Sas-di

1098


what cause the "error: connect:" and "error in the libname statement" when there weren't any such problems?

2186


Name some categories in sas 9? : sas-grid-administration

979


Explain proc sort?

1120


in the flow of data step processing, what is the first action in a typical data step? : Sas programming

1079


What can you learn from the SAS log when debugging?

1388