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
what are the types of interactive display types? : Sas-bi
What are common programming errors committed in sas
What do the put and input function do?
Explain translate function?
What is the difference between input and infile statement?
How would you code a macro statement to produce information on the sas log? This statement can be coded anywhere? : sas-macro
Explain what Proc glm does?
what is information maps?
Difference between sum function and using “+” operator?
what is the limit of the number of the rows and columns available in the worksheet? : Sas-bi
what are the best practices to process the large data sets in sas programming? : Sas-administrator
what are sas bi dashboard components? : Sas-bi
what is SAS OPTIMIZATION?
What is the difference between proportion and average?
Hi,by usining ptf how we have to combine (likr merge)10 datasets at a time in the oracle database(and write a macro code also)?Like this i have a douts a lot if you dont mind may please send one text mail for me(madhusudhanap16@gmail.com)?