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.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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
  • 671 views
  • 0 likes
  • 2 in conversation