data want;
retain y;
set have;
if id <= id_ref then y = x;
output;
if id < id_ref then call missing (y);
run;
PG
Register Today!
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.