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 / abcds

data _null_;
file print;
tranw = tranwrd('kannafromsalembut','kanna',' ');
tranw1 = tranwrd(tranw,'embut',' ');
tranw2 = strip(tranw1);
put tranw2= ;
run;
this is the correct one.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1128


Enlist the syntax rules followed in sas statements.

1093


What are the five ways to do a table lookup in sas? : sas-grid-administration

1066


What are the difference between sas functions and procedures?

1161


Which statement does not perform automatic conversions in comparisons?

1793


What are the functions used for character handling?

1264


describe the interaction table in sas di? : Sas-di

1035


what is sas business intelligence? : Sas-bi

1185


To what type of programms have you used scratch macros?

2575


Difference between nodup and nodupkey options?

1201


Do you need to know if there are any missing values?

1047


Compare sas with other data analytics tools.

1039


What is the use of stop statement?

1089


What is the basic syntax of a sas program?

1222


What are SAS/ACCESS and SAS/CONNECT?

1152