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 / 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 |
Post New Answer View All Answers
explain the use of % includes a statement in sas? : Sas-administrator
Give some examples where proc report’s defaults are same as proc print’s defaults?
What do you code to create a macro? : sas-macro
Explain the main difference between the sas procedures and functions? : Sas-administrator
What is the difference between %put and symbolgen? : sas-macro
What is interleaving in SAS?
What do the put and input function do?
what is business intelligence? : Sas-bi
how does sas handle missing values in functions? : Sas programming
What is SAS?
how to generate the test data in sas without input data? : Sas-administrator
What are the different operating system platforms in which we can use sas? : sas-grid-administration
Explain data_null_?
i have a dataset with 100 obs i want to generate title from 20th obs onwards with total observations. that should contain 100 obs.dont use firstobs and dnt split the data. use dataset block or proc report? how can we genarate;
What is the work of tranwrd function?