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 are the default statistics for means procedure?
Do you use PROC REPORT or PROC TABULATE? Which do you prefer? Explain.
I am preparing SAS Certified Advanced Programmer for SAS 9 in 2014. If anybody has the latest dumps for this exam, please mail me at dhiman.mukherjee@gmail.com
i am importing large data from oracle to work library. in log there is a error message worklibrary space is not enough. then how to import the data safely to sas environment.
what is enterprise guide? What is the use of it? : Sas programming
What SAS statements would you code to read an external raw data file to a DATA step?
how can you sort the dataset having millions of OBS(instead of sort procedure?
How do you add a prefix to some or all variables in a dataset using a SAS macro?
How would you compile all macros from a folder in a study, within the autoexec program?
How many versions came upto now in SAS?
what is the difference between: x=a+b+c+d; and x=sum (of a, b, c ,d);? : Sas programming
where to use sas business intelligence? : Sas-bi