As you learning, I would just like provide some tips. Look at the code people post here, particularly the formatting, indetation, casing, and not using shorthands. Code should be readable above all else, then it should be efficient. So for the code you posted:
data work.empdup;
set emws1.ids3_data;
med_dum=.;
if medv >= 25 then med_dum=1;
run;
... View more