Hi,
A sas library consists 10 datasets for e.g SASHELP lib, I want to find the variable having maximum number of unique values present in the SASHELP.
Please suggest.
Thanks!
What have you tried?
Do you know how to find the variable you want for a single dataset?
Can you provide an example dataset and explain what you mean by maximum unique values?
I would recommend looking into the NLEVELS option on PROC FREQ.
Why?
And
Let's break this down further:
Which steps do you need help with exactly? Please show what ever you've tried so far.
@Aexor wrote:
Hi,
A sas library consists 10 datasets for e.g SASHELP lib, I want to find the variable having maximum number of unique values present in the SASHELP.
Please suggest.
Thanks!
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.