Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 is the different between functions and procs that calculate the same simple descriptive statistics? : Sas programming

994


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?

2858


What is the difference between %local and %global? : sas-macro

1121


is data integration and etl programming is same? : Sas-di

1010


what is the one statement to set the criteria of data that can be coded in any step? : Sas programming

1093


Explain data step in SAS

1020


what do the sas log messages "numeric values have been converted to character" mean? : Sas programming

972


What are the difference between sas functions and procedures?

1071


What are the ways in which macro variables can be created in sas programming?

1032


How to sort in descending order?

1201


Tell me more about the parameters in macro? : sas-macro

1011


What is a method for assigning first.VAR and last.VAR to the BY group variable on unsorted data?

2532


What Proc glm does?

1025


Explain data_null_?

1005


how do you debug and test your sas programs? : Sas programming

1072