What I'm doing wrong? I also tried adding a label in the DATA procedure, but with the command PROC FREQ, still I got the name of the original variable and the label I want on top of the table, instead of replacing the name of 'month'.
I couldn't figure out how to change the column header within PROC FREQ, but I did come up with this solution. Write the results of your freq procedure to another SAS dataset and print that dataset. With the proper options, you can get the label headers you want. How would this work?
table month / out=work.freq outcum;
The short explanation is that SAS procedures (like PROC FREQ and PROC MEANS and PROC UNIVARIATE) work in conjunction with a TABLE template in order to produce output (such as LISTING window output or ODS output).
In order to have the LABEL used with PROC FREQ, you have to change the TABLE template that works with PROC FREQ. The Tech Support note contains a code example. If you have problems with the code, then you might consider contacting Tech Support for more help.