10-26-2017 05:05 PM
I'm looking for code that can count how many herds in my dataset MFD.
Each herd repeated in the original dataset many times. And this table is the output of proc freq of Herd.
this table is very long because of a large number of farms.
HOW CAN I KNOW THE NUMBER OF FREQUENCES?
10-26-2017 05:41 PM
From the original table, do a count(distinct herd) in sql.
10-26-2017 07:57 PM
GUI solution in SAS studio - but it also generates the code:
and the examples/reference in the documentation for PROC FREQ