i have a dataset with 25 obs; 10th obs has like
ramu,anji,ramu,azad,ramu like this. i want to know how many
times the word repeats in that obs?
Answer Posted / alok karan
data repeat;
x="ramu anji ramu azad ramu";
y=count(x,"ramu");
run;
proc print data=repeat;
run;
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
How will you generate test data with no input data?
What was the last computer book you purchased? Why?
What does proc print, and proc contents are used for?
Have you used macros? For what purpose you have used? : sas-macro
Tell e how how dealt with..
How substr function works in sas?
What can you learn from the SAS log when debugging?
In ARRAY processing, what does the DIM function do?
what is the difference between nodup and nodupkey options? : Sas programming
How many ways to overcome a missing values???
What is SAS?
Differentiate between sas functions and sas procedures.
What commands are used in the case of including or excluding any specific variables in the data set?
Can you explain the process of calendar?
How would you define the end of a macro?