Pyrite | Level 9

## Proc Freq Output

Hi....Is there a way to suppress the Statistics Table from being generated when using the Proc Freq. Thanks.

``````proc freq data=Want50 order=data;
weight Count;
tables Intake*Response / nocol nopct expected chisq fisher;
exact pcorr scorr;
by Question notsorted;
run;

Statistic	Value	ASE
Gamma	0.0769	0.2922
Kendall's Tau-b	0.0430	0.1636
Stuart's Tau-c	0.0478	0.1815

Somers' D C|R	0.0489	0.1857
Somers' D R|C	0.0379	0.1441

Pearson Correlation	0.0300	0.1729
Spearman Correlation	0.0455	0.1729

Lambda Asymmetric C|R	0.0000	0.0000
Lambda Asymmetric R|C	0.0714	0.1539
Lambda Symmetric	0.0323	0.0706

Uncertainty Coefficient C|R	0.0260	0.0274
Uncertainty Coefficient R|C	0.0424	0.0461
Uncertainty Coefficient Symmetric	0.0323	0.0344
``````
1 ACCEPTED SOLUTION

Accepted Solutions
Diamond | Level 26

## Re: Proc Freq Output

``````ods exclude measures;
proc freq data= ...``````
--
Paige Miller
3 REPLIES 3
Super User

## Re: Proc Freq Output

Find the table name (see instructions in link below) and then use ODS EXCLUDE to not have that table displayed.

``````ods exclude tableName;
proc freq data=....
<insert rest of code>``````

Here's some instructions and explanations on how to capture output that is shown.
https://blogs.sas.com/content/sastraining/2017/03/31/capturing-output-from-any-procedure-with-an-ods...

@twildone wrote:

Hi....Is there a way to suppress the Statistics Table from being generated when using the Proc Freq. Thanks.

``````proc freq data=Want50 order=data;
weight Count;
tables Intake*Response / nocol nopct expected chisq fisher;
exact pcorr scorr;
by Question notsorted;
run;

Statistic	Value	ASE
Gamma	0.0769	0.2922
Kendall's Tau-b	0.0430	0.1636
Stuart's Tau-c	0.0478	0.1815

Somers' D C|R	0.0489	0.1857
Somers' D R|C	0.0379	0.1441

Pearson Correlation	0.0300	0.1729
Spearman Correlation	0.0455	0.1729

Lambda Asymmetric C|R	0.0000	0.0000
Lambda Asymmetric R|C	0.0714	0.1539
Lambda Symmetric	0.0323	0.0706

Uncertainty Coefficient C|R	0.0260	0.0274
Uncertainty Coefficient R|C	0.0424	0.0461
Uncertainty Coefficient Symmetric	0.0323	0.0344
``````

Diamond | Level 26

## Re: Proc Freq Output

``````ods exclude measures;
proc freq data= ...``````
--
Paige Miller
Pyrite | Level 9

## Re: Proc Freq Output

Thanks Paige....that worked.....

Discussion stats
• 3 replies
• 621 views
• 2 likes
• 3 in conversation