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 ?

Answers were Sorted based on User's Feedback



We have a string like this "kannafromsalembut" ,from this i want to get only "fromsa..

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

We have a string like this "kannafromsalembut" ,from this i want to get only "fromsa..

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

We have a string like this "kannafromsalembut" ,from this i want to get only "fromsa..

Answer / kumarravi123

One will get appreciate from our team members if u give
correct answer

Is This Answer Correct ?    2 Yes 1 No

We have a string like this "kannafromsalembut" ,from this i want to get only "fromsa..

Answer / ramkgupta

thank you abcds for correcting my small mistake.

Is This Answer Correct ?    0 Yes 0 No

We have a string like this "kannafromsalembut" ,from this i want to get only "fromsa..

Answer / nagmani

data p;
input @6 x$ 7.;
cards;
kannafromsalembul
;
run;

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SAS Interview Questions

How to get part of string form the source string without using sub string function in SAS?

3 Answers  


Explain append procedure?

0 Answers  


data data1; input dt account; format dt date9.; cards; 1745 1230 1756 1120 1788 1130 1767 1240 ; data data2; input startdt enddt total; format startdt date9. enddt date9.; cards; 1657 1834 12300 1557 1758 16800 1789 1789 12300 1788 1345 12383 1899 1899 13250 ; proc sql; create table data3 as select * from data1 as x left join data2 as y on x.dt>=y.startdt and x.dt<=y.enddt; quit; Here, we are getting cartision product. But,I want left join report consisting of this program. It should not get duplicate values. you can modify the program also.

0 Answers  


What is program data vector (pdv) and what are its functions?

0 Answers  


Can you suggest us materials for sdtm mapping?

0 Answers   TCS,


What is instream data in SAS?

1 Answers  


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

0 Answers  


data abc; input x y ; cards; 1 2 5 6 7 8 7 8 1 7 5 7 ; run; Proc Freq data=abc; tables x*y / chisq nopercent nocol norow PLCORR; RUN; If we run the code, we have Polychoric Correlation = 0.9054 in the last table. I want to extract this particular entry with the value. Means I will create one dataset in which this value will be stored/extracted. I need your help in coding this. Please help me out.

2 Answers  


Differentiate between proc means and proc summary.

0 Answers  


how the sas basic syntax style described? : Sas-administrator

0 Answers  


What has been your most common programming mistake?

4 Answers   Wipro,


how can u extract,transform and loading?

2 Answers   CitiGroup,


Categories