DATA Step, Macro, Functions and more

SAS MACRO FREQ

Reply
New Contributor
Posts: 3

SAS MACRO FREQ

I am in need of a SAS/MACRO that freqs every column within a sas dataset.

Super User
Posts: 6,939

Re: SAS MACRO FREQ

Posted in reply to mesfandiari

I don't think macros have anything to do with it.  You can simply use:

 

proc freq data=have;

tables _all_;

run;

Super User
Posts: 13,950

Re: SAS MACRO FREQ

Posted in reply to Astounding

Astounding wrote:

I don't think macros have anything to do with it.  You can simply use:

 

proc freq data=have;

tables _all_;

run;


And actually the tables statement is optional in this case.

 

Super User
Posts: 24,027

Re: SAS MACRO FREQ

Posted in reply to mesfandiari

Some other options that may be helpful:

 

In SAS EG try the Tasks>Describe>Characterize Data

 

In SAS Studio try Tasks>Data>Data Exploration> select your categorical/continuous variables. 


Both will also have the code in the log that you can explore if desired.

 


mesfandiari wrote:

I am in need of a SAS/MACRO that freqs every column within a sas dataset.




Ask a Question
Discussion stats
  • 3 replies
  • 123 views
  • 2 likes
  • 4 in conversation