one way proc freq of different variables in a single dataset

Accepted Solution Solved
Reply
Contributor
Posts: 25
Accepted Solution

one way proc freq of different variables in a single dataset


Hi,

Could anyone tell me how to output a one way proc freq for all variables using out= option in tables statement?

prof freq data=loans;

     tables a b c d / missing out=outfreq;

run;

I want all a,b,c, & d freqs i output dataset. How to suppress sas defalut option of writing last variable's freq to output dataset?

Thanks,

RK


Accepted Solutions
Solution
‎03-13-2013 03:40 PM
Respected Advisor
Posts: 3,799

Re: one way proc freq of different variables in a single dataset

you could a table statement for each variable with out= but that will be many data sets.

or

use ODS OUTPUT ONEWAYFREQS=

View solution in original post


All Replies
Solution
‎03-13-2013 03:40 PM
Respected Advisor
Posts: 3,799

Re: one way proc freq of different variables in a single dataset

you could a table statement for each variable with out= but that will be many data sets.

or

use ODS OUTPUT ONEWAYFREQS=

Contributor
Posts: 25

Re: one way proc freq of different variables in a single dataset

Posted in reply to data_null__

It worked. Thank you. appreciate it

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 180 views
  • 1 like
  • 2 in conversation