This syntax works great in PROC SQL.
proc sql;
select count(distinct name||sex)
from sashelp.class;
quit;
If the fields are numeric, you must put them in a character (using put) or use cateither one of his siblings, who are happy to accept either numeric or characters.
proc sql;
select count(distinct cats(age,sex))
from sashelp.class;
quit;
source
share