<?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: Proc Freq Table Labels in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Table-Labels/m-p/770235#M244353</link>
    <description>Figured it out. Was running a different proc freq template.&lt;BR /&gt;Used this:&lt;BR /&gt;&lt;BR /&gt;proc template;&lt;BR /&gt;delete base.freq.crosstabfreqs;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;and now I get the correct labels</description>
    <pubDate>Fri, 24 Sep 2021 13:26:44 GMT</pubDate>
    <dc:creator>sjmosiman</dc:creator>
    <dc:date>2021-09-24T13:26:44Z</dc:date>
    <item>
      <title>Proc Freq Table Labels</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Table-Labels/m-p/770219#M244343</link>
      <description>&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;I'm trying to create basic proc freq 2-way tables that include row and column percent's.&amp;nbsp; The output includes these, however they are not labelled which means manually including row and column percent labels for every table I make.&amp;nbsp; Is there a way using proc templates or something to set labels on so that&amp;nbsp; frequency, row, and col % will be labeled whenever I make a table?&amp;nbsp; I've included the output I want and the output type I'm currently getting (without freq, row or col labels)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sjmosiman_0-1632488559235.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64035i47528CBBCC7620CE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sjmosiman_0-1632488559235.png" alt="sjmosiman_0-1632488559235.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sjmosiman_1-1632488570905.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64036i7806FC337498CA57/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sjmosiman_1-1632488570905.png" alt="sjmosiman_1-1632488570905.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 13:03:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Table-Labels/m-p/770219#M244343</guid>
      <dc:creator>sjmosiman</dc:creator>
      <dc:date>2021-09-24T13:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq Table Labels</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Table-Labels/m-p/770228#M244346</link>
      <description>&lt;P&gt;Why not try PROC TABULATE ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate data=sashelp.heart;
class status sex;
table status=' '*(n rowpctn colpctn) ,sex all='Total';
keylabel n='Frequency' rowpctn='Row Pct' colpctn='Col Pct';
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1632489319447.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64041iEE92FD71BE9AB524/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1632489319447.png" alt="Ksharp_0-1632489319447.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 13:15:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Table-Labels/m-p/770228#M244346</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-09-24T13:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq Table Labels</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Table-Labels/m-p/770234#M244352</link>
      <description>I appreciate the response, and that's what I've been using. But there must be some sort of setting that does it automatically. For your example, my coworker can do:&lt;BR /&gt;proc freq data=sashelp.heart;&lt;BR /&gt;table status*sex;&lt;BR /&gt;run;&lt;BR /&gt;and it will return the exact same table that you got. It's not a huge deal but the more efficient I can be with code the better.</description>
      <pubDate>Fri, 24 Sep 2021 13:21:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Table-Labels/m-p/770234#M244352</guid>
      <dc:creator>sjmosiman</dc:creator>
      <dc:date>2021-09-24T13:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq Table Labels</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Table-Labels/m-p/770235#M244353</link>
      <description>Figured it out. Was running a different proc freq template.&lt;BR /&gt;Used this:&lt;BR /&gt;&lt;BR /&gt;proc template;&lt;BR /&gt;delete base.freq.crosstabfreqs;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;and now I get the correct labels</description>
      <pubDate>Fri, 24 Sep 2021 13:26:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Table-Labels/m-p/770235#M244353</guid>
      <dc:creator>sjmosiman</dc:creator>
      <dc:date>2021-09-24T13:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq Table Labels</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Table-Labels/m-p/770253#M244358</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I thought it was related to the template used (or not used).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it's solved indeed, it's better to mark this as solved.&lt;/P&gt;
&lt;P&gt;That way people are not needlessly opening up this topic anymore in an attempt to give an answer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 14:23:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Table-Labels/m-p/770253#M244358</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-09-24T14:23:30Z</dc:date>
    </item>
  </channel>
</rss>

