BookmarkSubscribeRSS Feed
deleted_user
Not applicable
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
3 REPLIES 3
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
It is not necessary to submit the same post in multiple forums.

Scott Barry
SBBWorks, Inc.
deleted_user
Not applicable
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
deleted_user
Not applicable
Thqs sukanya it worked

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

Health and Life Sciences Learning

 

Need courses to help you with SAS Life Sciences Analytics Framework, SAS Health Cohort Builder, or other topics? Check out the Health and Life Sciences learning path for all of the offerings.

LEARN MORE

Discussion stats
  • 3 replies
  • 1063 views
  • 0 likes
  • 2 in conversation