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
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 |
Answer / kumarravi123
One will get appreciate from our team members if u give
correct answer
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / ramkgupta
thank you abcds for correcting my small mistake.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / nagmani
data p;
input @6 x$ 7.;
cards;
kannafromsalembul
;
run;
| Is This Answer Correct ? | 0 Yes | 0 No |
What is _n_?
Explain what is the use of proc gplot?
What's the difference between VAR A1 - A4 and VAR A1 - A4?
To what type of programms have you used scratch macros?
Describe crosslist option in tables statement?
What are SAS/ACCESS and SAS/CONNECT?
What are the table names in oracle database...?
Give e an example of..
what is data integration? : Sas-di
diff between nodup rec and ondup key???
What is SAS?
explain about data integrator metadata reports? : Sas-di