Programming the statistical procedures from SAS

proc freq - increasing the number of characters being printed (displayed)

Reply
Contributor
Posts: 32

proc freq - increasing the number of characters being printed (displayed)

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.
Super Contributor
Super Contributor
Posts: 365

Re: proc freq - increasing the number of characters being printed (displayed)

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
Contributor
Posts: 32

Re: proc freq - increasing the number of characters being printed (displayed)

Wonderful SPR!!!

Thank you very much!!!
Contributor
Posts: 32

Re: proc freq - increasing the number of characters being printed (displayed)

Unfortunately, the table produced via the data step still have the truncated variable labels.

Any more ideas?
Super Contributor
Super Contributor
Posts: 365

Re: proc freq - increasing the number of characters being printed (displayed)

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.
Ask a Question
Discussion stats
  • 4 replies
  • 217 views
  • 0 likes
  • 2 in conversation