I'm too new to SAS, I have a field with a Code# field, and I need to use SAS to loop it and print out if code# appears 1 time only, two times only and etc.... The counts are mutually exclusive.
Any advice is appreciated.
Couldn't you do this with proc freq? If the code number is called "codenum":
proc freq data=whatever;
tables codenum;
run;
Add order=freq to the proc freq statement if you want the codes to appear in order of greatest frequency. However, maybe I didn't understand your question properly and this is too simplistic.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.