Just as an alternative
data Network;
input Cusip Analyst;
cards;
1 1
1 2
1 3
2 8
2 9
2 11
2 10
2 12
3 45
3 46
;
proc transpose data=Network out=wide prefix = a;
by Cusip;
id Analyst;
var Analyst;
run;
proc summary data = wide missing;
by Cusip;
class a:;
ways 2;
output out = temp / ways;
run;
data want(keep = Cusip var1 var2);
set temp;
if n(of a:) = 2;
var1 = largest(2, of a:);
var2 = largest(1, of a:);
run;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
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!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.