Since the request included "(I don’t want to include those that have only one visit)", I propose the below modification to @Shmuel's solution
proc sort data=have; by ID visit; run;
data want;
set have;
by ID visit;
if last.ID and not(first.id);
run;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Registration is open
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!