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

Of all your work, where have you been the most successful?

4664


What do you know about sas data set?

1105


What is the role of unrestrictive users? : sas-grid-administration

1002


What is the basic structure of the SAS base program?

1318


How would you code a merge that will write the matches of both to one data set, the non-matches from the left-most data?

1093


To what type of programms have you used scratch macros?

2565


If money were no object, what would you like to do?

3198


Explain substr function?

1103


why is sas considered self-documenting? : Sas programming

1144


Mention the difference between ceil and floor functions in sas?

1149


how can you put a "trace" in your program? : Sas programming

1059


What is PDV?

1146


How will you use the WHO Drug Dictionary for Reporting Clinical Trials?

2334


what is sas database server? : Sas-di

1129


What is the role of administrative users? : sas-grid-administration

1078