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
Give some examples where proc report’s defaults are same as proc print’s defaults?
what are informats in sas? : Sas-administrator
Name few SAS functions?
What is by-group processing?
why is sas data integration studio important? : Sas-di
Explain bmdp procedure?
How are numeric and character missing values represented internally?
I need level 2 to 5 sas using companies in india
What is the command used to find missing values?
How will you react when, while consulting a SAS documentation manual to get an answer to a problem, someone says hey, I thought you were supposed to know all that stuff already, and not have to look it up in a book?
What is maximum number of rows and cols can be handled in SAS?
what is study design in while working with SAS? what are screening variables in SAS?
What are types of transport files?
Can you suggest us materials for sdtm mapping?
in the flow of data step processing, what is the first action in a typical data step? : Sas programming