BookmarkSubscribeRSS Feed
DevBanerjee
SAS Employee

How do I create an Identifying Flag which will tell me using which rule combination it is creating the ClusterId's?

 

Using following code I'm creating the Match Codes:

data MC_tbl;
set sample_data;
A_MC85=dqmatch(Name,'Name',85);
B_MC80=dqmatch(Address,'Address',85);
C_MC80=dqmatch(Company,'Company',80);
run;


while using following code I'm doing the clustering process:
proc dqmatch data=Work.MC_tbl out=Work.Cluster cluster=Clusterid ;

criteria condition=1 var=A_MC85 exact;
criteria condition=1 var=B_MC80 exact;

criteria condition=2 var=A_MC85 exact;
criteria condition=2 var=C_MC80 exact;
quit;

2 REPLIES 2
ballardw
Super User

Are you looking for the MATCHCODE=matchvariablename on the Proc statement?

DevBanerjee
SAS Employee
No, I just want to add an flag variable so that it will tell me that this record passing this rule combination to create the clusterID for further analysis.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 601 views
  • 0 likes
  • 2 in conversation