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 ?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / kumarravi123
One will get appreciate from our team members if u give
correct answer
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / ramkgupta
thank you abcds for correcting my small mistake.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / nagmani
data p;
input @6 x$ 7.;
cards;
kannafromsalembul
;
run;
| Is This Answer Correct ? | 0 Yes | 0 No |
what is transformation in sas data integration? : Sas-di
What is a put statement?
How do you use the do loop if you don’t know how many times you should execute the do loop?
i have a null dataset with 10 variables; i want to print only name of the varibales in log window and also output window.how can we do this one?
What type of tables you are using in YOUR reporting..???
2 Answers GSK GlaxoSmithKline,
what is SAS/Graph?
What is program data vector (pdv)?
How would you create a data set with 1 observation and 30 variables from a data set with 30 observations and 1 variable?
What do you know about symput and symget?
In the flow of DATA step processing, what is the first action in a typical DATA Step?
Why double trailing @@ is used in input statement?
There is a river notoriously known for it?s large crocodile population. With ease, how do you safely cross it?