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?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / aarti
Data DS;
INFILE datalines;
input name $;
datalines;
ram
sham
seema
amit
sham
sushil
amit
seema
ravi
run;
proc sql;
create table rep as
select name,count(name) as cnt from ds group by 1;
quit;
proc print data=rep;
| Is This Answer Correct ? | 1 Yes | 2 No |
Answer / vivek
Data DS;
INFILE datalines;
input name $;
datalines;
ram
sham
seema
amit
sham
sushil
amit
seema
ravi
run;
proc freq data = ds;
table name;
output out =dsfrq;
run;
| Is This Answer Correct ? | 1 Yes | 2 No |
What is SAS? is it a software just for use or we can creat something over there?
What does proc print, and proc contents are used for?
Difference between sum function and using “+” operator?
What is Linear Regression?
How does proc sql work?
what are _numeric_ and _character_ and what do they do? : Sas programming
Are you familiar with special input delimiters How are they used?
hi tell be about pfizer? how to compare the work with other companies ? please tell me how to login and work also?
At compile time when a SAS data set is read, what items are created?
What is the purpose of using the N=PS option?
Do you know the features of sas?
Which date function advances a date, time or datetime value by a given interval?