<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: label in PROC FREQ in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/label-in-PROC-FREQ/m-p/7288#M62</link>
    <description>Thank you a lot; the recommended solution has solved the problem&lt;BR /&gt;
&lt;BR /&gt;
Regards&lt;BR /&gt;
Karl</description>
    <pubDate>Fri, 07 Mar 2008 08:32:57 GMT</pubDate>
    <dc:creator>Karolus</dc:creator>
    <dc:date>2008-03-07T08:32:57Z</dc:date>
    <item>
      <title>label in PROC FREQ</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/label-in-PROC-FREQ/m-p/7285#M59</link>
      <description>Hi, I have a problem defining a label.&lt;BR /&gt;
&lt;BR /&gt;
The dataset contains a variable called 'Month' formatted as numbers;&lt;BR /&gt;
when I use the following code:&lt;BR /&gt;
&lt;BR /&gt;
proc freq data=mylib.history;&lt;BR /&gt;
	table month;&lt;BR /&gt;
	title 'PRoc freq without format';&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I get the following output:&lt;BR /&gt;
&lt;BR /&gt;
                                    PRoc freq without format                                 227&lt;BR /&gt;
&lt;BR /&gt;
                                       The FREQ Procedure&lt;BR /&gt;
&lt;BR /&gt;
                                             Season&lt;BR /&gt;
&lt;BR /&gt;
                                                     Cumulative    Cumulative&lt;BR /&gt;
                   MONTH    Frequency     Percent     Frequency      Percent&lt;BR /&gt;
                   __________________________________________________&lt;BR /&gt;
                       1                10           8.33            10         8.33&lt;BR /&gt;
                       2                10           8.33            20        16.67&lt;BR /&gt;
                       3                10           8.33            30        25.00&lt;BR /&gt;
                       4                10           8.33            40        33.33&lt;BR /&gt;
                       5                10           8.33            50        41.67&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
However, I'd like to change the name of the column 'Month' by "Active Months".  For that; I used the command label:&lt;BR /&gt;
&lt;BR /&gt;
proc freq data=mylib.history;&lt;BR /&gt;
	table month;&lt;BR /&gt;
	title 'PRoc freq without format';&lt;BR /&gt;
	&lt;B&gt;label month ='Active Months';&lt;/B&gt;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
However, the label 'month' is not changed, instead, my proposed new lable appears on top of the output, like a title:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
                                        &lt;B&gt;Active Months&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
                                                     Cumulative    Cumulative&lt;BR /&gt;
                   MONTH    Frequency     Percent     Frequency      Percent&lt;BR /&gt;
                   _______________________________________________&lt;BR /&gt;
                       1          10        8.33            10         8.33&lt;BR /&gt;
                       2          10        8.33            20        16.67&lt;BR /&gt;
                       3          10        8.33            30        25.00&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
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'.&lt;BR /&gt;
&lt;BR /&gt;
Kind regards&lt;BR /&gt;
Karolus</description>
      <pubDate>Thu, 06 Mar 2008 12:53:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/label-in-PROC-FREQ/m-p/7285#M59</guid>
      <dc:creator>Karolus</dc:creator>
      <dc:date>2008-03-06T12:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: label in PROC FREQ</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/label-in-PROC-FREQ/m-p/7286#M60</link>
      <description>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?&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc freq;&lt;BR /&gt;
	table month / out=work.freq outcum;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc print data=work.freq noobs label;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Thu, 06 Mar 2008 18:13:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/label-in-PROC-FREQ/m-p/7286#M60</guid>
      <dc:creator>1162</dc:creator>
      <dc:date>2008-03-06T18:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: label in PROC FREQ</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/label-in-PROC-FREQ/m-p/7287#M61</link>
      <description>Hi:&lt;BR /&gt;
  This Tech Support note explains what needs to happen:&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/23/350.html" target="_blank"&gt;http://support.sas.com/kb/23/350.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
  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).&lt;BR /&gt;
&lt;BR /&gt;
  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.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 06 Mar 2008 18:46:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/label-in-PROC-FREQ/m-p/7287#M61</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-03-06T18:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: label in PROC FREQ</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/label-in-PROC-FREQ/m-p/7288#M62</link>
      <description>Thank you a lot; the recommended solution has solved the problem&lt;BR /&gt;
&lt;BR /&gt;
Regards&lt;BR /&gt;
Karl</description>
      <pubDate>Fri, 07 Mar 2008 08:32:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/label-in-PROC-FREQ/m-p/7288#M62</guid>
      <dc:creator>Karolus</dc:creator>
      <dc:date>2008-03-07T08:32:57Z</dc:date>
    </item>
  </channel>
</rss>

