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!
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.