That's a merge and I think its the same concept, just MERGE instead of SET. Make sure the variable names are unique in each otherwise you can't use this approach because you'll have to rename the variables.
data want;
merge class: ;
by linked_variable;
run;
... View more