But, it is indeed an easy procedure.
For example:
proc sql;
select GROUP_ID, count(*) as COUNT from (
select int(VALUE/10) as GROUP_ID from INPUT
) group by GROUP_ID;
quit;
int(VALUE/10) will return the integer value of VALUE/10, so
0 =< VALUE < 10 => GROUP_ID = 0
10 =< VALUE < 20 => GROUP_ID = 1
etc...
And by the way, drugs are still pretty illegal here.
It was discussed some time ago, but it was a no go idea.
Cheers from Portugal.
Daniel Santos @
www.cgd.pt.