If there is no variation of DATE within each id, then:
data have;
input ID date :mmddyy10.;
format date date9.;
datalines;
1 12/13/2022
1 .
1 12/13/2022
1 .
2 03/26/1978
2 .
2 .
3 07/29/1980
4 10/02/1982
4 .
run;
data want;
merge have (keep=id date where=(date^=.)) have (drop=date) ;
by id;
run;
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.