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 sas features do you use to check errors and data validation?
what is sas and what are the functions? : Sas-administrator
Explain append procedure?
What are the functions which are used for character handling functions?
how does sas handle missing values in a merge? : Sas programming
what are the component of range? : Sas-bi
What is the difference between order and group variable in proc report?
Which are the statements whose placement in the data step is critical?
What is the purpose of _character_ and _numeric_?
sas implementing companies in pune implementing clinical projects if anyone knows plz send ans immediately
What is the length assigned to the target variable by the scan function?
Do you need to rearrange the order of the data for the report?
what is enterprise guide? What is the use of it? : Sas programming
What are the uses of sas?
how to change the execute of macro