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
what is the different between functions and procs that calculate the same simple descriptive statistics? : Sas programming
How to import multiple xls files into sas. Out of those files, how to get different values from a single variable and how to find number of rows per value type? We can do this using group by for one xls file with proc sql. Was wondering how I can achieve this for multiple files at the same time. Any ideas?
What is the difference between %local and %global? : sas-macro
is data integration and etl programming is same? : Sas-di
what is the one statement to set the criteria of data that can be coded in any step? : Sas programming
Explain data step in SAS
what do the sas log messages "numeric values have been converted to character" mean? : Sas programming
What are the difference between sas functions and procedures?
What are the ways in which macro variables can be created in sas programming?
How to sort in descending order?
Tell me more about the parameters in macro? : sas-macro
What is a method for assigning first.VAR and last.VAR to the BY group variable on unsorted data?
What Proc glm does?
Explain data_null_?
how do you debug and test your sas programs? : Sas programming