Reg: same Data in obs

Reply
N/A
Posts: 0

Reg: same Data in obs

Hi



data cus_mon;
input cus mon$ emi;
cards;
1 jan 20
2 jan 10
3 jan 20
1 feb 20
2 feb 20
3 feb 10
1 mar 20
2 mar 20
3 mar 20
run;

i want the no of customers paying the emi same amount in the months jan,feb and mar in this Dataset cusomer 1 is paying the same emi in all the three months like this i want the count of .No of customers paying the same amount in all the three months .

I am having 30,000 obs i sholud find this from that obs
Super Contributor
Super Contributor
Posts: 3,174

Re: Reg: same Data in obs

It is not necessary to submit the same post in multiple forums.

Scott Barry
SBBWorks, Inc.
N/A
Posts: 0

Re: Reg: same Data in obs

One way calculating by using Proc Freq;

proc sort data=cus_mon;
by cus emi;
run;

proc freq data=cus_mon noprint;
tables emi/out=test(where=(count=3));
by cus;
run;

proc sql ;
select count(*) from test;
quit;

~ Sukanya E
N/A
Posts: 0

Re: Reg: same Data in obs

Thqs sukanya it worked
Ask a Question
Discussion stats
  • 3 replies
  • 395 views
  • 0 likes
  • 2 in conversation