Then run this code, based on my earlier "have" dataset:
proc sql;
create table flag as
select
paramcd,
case
when count(distinct aval) = 1
then 'Y'
else ' '
end as flag
from have
group by paramcd
having flag = 'Y';
quit;
data want;
merge
have
flag
;
by paramcd;
if not first.paramcd then flag = ' ';
run;
Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.