BookmarkSubscribeRSS Feed
veblen
Calcite | Level 5
Is there a way to increase the number of characters printing (displayed) for a PRO FREQ table?

It appears that the column width is defined by the number of characters in "frequency."

My labels are over the 9-spaces provided and I want all of the VAR labels to be printed.

Thanks.
4 REPLIES 4
SPR
Quartz | Level 8 SPR
Quartz | Level 8
Hello Veblen,

You can output a frequency table into a dataset and then print it with any desired format:
[pre]
proc freq data=sashelp.class noprint;
tables age /out=freq;
run;
[/pre]
Sincerely,
SPR
veblen
Calcite | Level 5
Wonderful SPR!!!

Thank you very much!!!
veblen
Calcite | Level 5
Unfortunately, the table produced via the data step still have the truncated variable labels.

Any more ideas?
SPR
Quartz | Level 8 SPR
Quartz | Level 8
Could you please give an example of your data. I printed freq from my code:
[pre]
proc print data=freq label;
var Count;
run;
[/pre]
Variable Count has label "Frequency Count" and it is printed without truncation.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 4216 views
  • 0 likes
  • 2 in conversation