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 |
Tell different ways to create Macrovarible?
3 Answers Accenture, PharmaNet i3,
Describe the function and untility of the most difficult SAS macro that you have written.
How to find out no. of business days in a month using macros.???(excluding weekends and holidays).
How are numeric and character missing values represented internally?
how can you create zero observation dataset? : Sas programming
How do you add a number to a macro variable?
What do the mod and int function do? : Sas programming
How sas treats the dsd delimiters?
how can you improve the performance of a query, If it is excuting very slowly?
What’s the difference between var b1 – b3 and var b1 — b3?
Mention what is the difference between nodupkey and nodup options?
How would you create multiple observations from a single observation?