07-24-2016 02:26 PM
Use NOBS and delete. I'm not sure if it should be less than or less than and equal to in the comparison so both are there.
One will work for you.
data want; set sashelp.class NOBS=COUNT; if NOBS - _n_ < 6 then delete; *if NOBS - _n_ <= 6 then delete; run;
07-24-2016 02:36 PM
Need further help from the community? Please ask a new question.