BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Lychee
Calcite | Level 5

I have two datasets with a commnon variable named Customer_ID. This ID variable's role was set to ID when it was initially imported into the EM as data source. Now I was trying to combine two two datasets through "Merge" node. In the property window, I set Merging type as "Match". But when I was trying to select the common varaible in the "By Ordering" menu, the Customer_ID was not there.

1 ACCEPTED SOLUTION

Accepted Solutions
WendyCzika
SAS Employee

Before opening the By Ordering dialog, right-click on the Merge node and select Edit Variables.  Then you can set the Merge Role for Customer_ID to be "By".  After clicking OK to close this dialog, you can now open the By Ordering dialog and you should see Customer_ID show up now (this step isn't necessary though).

Hope that helps!

View solution in original post

3 REPLIES 3
WendyCzika
SAS Employee

Before opening the By Ordering dialog, right-click on the Merge node and select Edit Variables.  Then you can set the Merge Role for Customer_ID to be "By".  After clicking OK to close this dialog, you can now open the By Ordering dialog and you should see Customer_ID show up now (this step isn't necessary though).

Hope that helps!

Lychee
Calcite | Level 5

Thank you so much, Wendy. You saved me lots of time. I spent whole day yesterday but can't figure it out.

A further question - After running the Merge node, I right-clicked on the Merge node and select Edit Variables. All the variables listed there are coming from only one of two datasets. I thought I should see the variables from both datasets.

WendyCzika
SAS Employee

To see the variables in the merged data set, you can click on the button for Exported Data from the Properties panel when the Merge node is selected, then either Browse or click Properties to see the variables in the merged, exported train data.  Or connect the Merge node to another node, and in the new node you can do Edit Variables to see all the variables.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to choose a machine learning algorithm

Use this tutorial as a handy guide to weigh the pros and cons of these commonly used machine learning algorithms.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 5979 views
  • 5 likes
  • 2 in conversation