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

Mention common programming errors committed in sas ?

1057


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

1053


Hi, Does anybody has lastest SAS certification(base, adv., clinical)dumps,if anybody has please email me at mailtorajani76@gmail.com. Thanks

2199


How do you control the number of observations and/or variables read or written? Approximately what date is represented by the SAS date value of 730?

1622


what is sas application server? : Sas-di

997


How do you control the number of observations and/or variables read or written?

1190


name several ways to achieve efficiency in your program? : Sas programming

984


describe how to adjust the performance of data integrator? : Sas-di

944


What is the use of %include statement?

994


What is run-group processing?

1089


What are the statements in proc sql?

1042


how will you location sas platform applications available from web browser? : Sas-bi

1012


what are some differences between proc summary and proc means? : Sas programming

1041


If you could design your ideal job, what would it look like?

2870


What is the maximum length of the macro variable?

1131