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 is the good sas programming practices for processing large data sets?
Enlist the syntax rules followed in sas statements.
What are the five ways to do a table lookup in sas? : sas-grid-administration
What are the difference between sas functions and procedures?
Which statement does not perform automatic conversions in comparisons?
What are the functions used for character handling?
describe the interaction table in sas di? : Sas-di
what is sas business intelligence? : Sas-bi
To what type of programms have you used scratch macros?
Difference between nodup and nodupkey options?
Do you need to know if there are any missing values?
Compare sas with other data analytics tools.
What is the use of stop statement?
What is the basic syntax of a sas program?
What are SAS/ACCESS and SAS/CONNECT?