data temperate tropical;
set flora;
select (region);
when (1,4) output temperate;
when (2,3,5) output tropical;
otherwise;
end;
run; |
|
data temperate tropical;
set flora;
if Region in (1,4)
then output temperate;
else if Region in (2,3,5)
then output tropical;
else output;
run; |
|