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

We have a string like this "kannafromsalembut" ,from this i
want to get only "fromsal" (but one condition with out
using substring function)here we can not use scan because in
the given string there is no delimeter? so give ans without
out using substring ?

Answer Posted / ram kumar

data _null_;
file print;
tranw=tranwrd('kannafromsalembut','kanna',' ');
tranw1=tranwrd(tranw,'embut',' ');
tranw2=strip(tranw2);
put tranw2= ;
run;
this will give your required output. that is tranw2=fromsal.

Is This Answer Correct ?    11 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the primary data source for the wrs? : Sas-bi

1243


How do you specify the number of iterations and specific condition within a single do loop?

1111


Differences between where and if statement?

1099


What do you know about symput and symget?

1260


How to include or exclude specific variables in a data set?

1124


Tell me about % include and % eval? : sas-macro

1147


What can be the size of largest dataset in SAS?

1235


Intern stastical programmer written test

760


How you are maintaining sas programmes in your company...any specific version control software you are using? If so, tell me the name?

2130


What is the good sas programming practices for processing large data sets?

1127


How to create an external dataset with sas code?

1165


explain about data integrator metadata reports? : Sas-di

1113


What is the difference between where and if statement?

1118


How do you debug and test your SAS programs?

1566


What versions of SAS have you used (on which platforms)?

1519