Desktop productivity for business analysts and programmers

list all categorical variables in a data set - enterprise guide

Reply
Learner
Posts: 1

list all categorical variables in a data set - enterprise guide

I am new to SAS and was wondering if there is a way to list all categorical variables using enterprise guide.

Super User
Posts: 23,311

Re: list all categorical variables in a data set - enterprise guide

Posted in reply to lkbrown004

Nope, just because there's no way to say what is and what is not a 'categorical' variable. There is a Characterize Data task that's pretty helpful and probably pretty close to what you want. 

 

There are ways to reference character or numeric variables enmass, but a numeric variable can be a categorical variable and a character variable could be an identifier and not a categorical variable. 

 


@lkbrown004 wrote:

I am new to SAS and was wondering if there is a way to list all categorical variables using enterprise guide.


 

Super User
Posts: 13,333

Re: list all categorical variables in a data set - enterprise guide

Posted in reply to lkbrown004

If you have numeric values that are categories then not likely as unless you assigned either a label or name that indicates "categorical" you haven't much to search for. It is possible to get character variables which are usually categorical in nature (hard to do math with them). Do you need a menu driven EG approach or would code work for the character variables?

 

Ask a Question
Discussion stats
  • 2 replies
  • 103 views
  • 0 likes
  • 3 in conversation