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;
Ready to join fellow brilliant minds for the SAS Hackathon?
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.