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


Please Help Members By Posting Answers For Below Questions

What are the uses of sas?

804


how does sas handle missing values in formats? : Sas programming

699


Explain how merging helps to combine data sets.

704


What is a method to debug and test your SAS program?

832


How will you react when, while consulting a SAS documentation manual to get an answer to a problem, someone says hey, I thought you were supposed to know all that stuff already, and not have to look it up in a book?

2048






what is the basic structure sas administrator? : Sas-administrator

654


explain about sas business intelligence? : Sas-bi

685


what versions of sas have you used (on which platforms)? : Sas programming

681


What are the difference between sas functions and procedures?

730


What can be the size of largest dataset in SAS?

814


what are all the reports you generated in your recent project?

1794


What is slibref?

849


Differentiate between proc means and proc summary.

690


How do you debug and test your SAS programs?

1140


What is the sas data set? : sas-grid-administration

669