If I understand you, you want a dummy variable that is true (or 1) if the household is > 5, else it should be 0 (or false).
This is one simple way to calculate this. Note it doesn't take into account what should happen if the continuous variable has a missing value.
data want;
set have;
length is_household_gt_5 8;
/* assuming household_size is continuous */
is_household_gt_5 = (houshold_size > 5);
run;
... View more