data killList;
set have;
by id;
retain onlyZeros;
if first.id then onlyZeros = 1;
if var = '1' then onlyZeros = 0;
if last.id and onlyZeros then output;
keep id;
run;
data want;
merge have killList(in= removeIt);
by id;
if removeIt then delete;
run;
The 2025 SAS Hackathon has begun!
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.