We came across this one during our "Jam session" today, and just wanted to offer a minor tweak to the solution given by KurtBremser above (thank you KurtBremser!)... in order to have that data set exported to a subsequent node after the SAS Code node, you can do the following:
proc sort data=A;
by x;
run;
proc sort data=B;
by x;
run;
data &em_export_train;
merge
A (in=in_a)
B (in=in_b)
;
by x;
if in_a and in_b;
run;
... View more