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 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 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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