<?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: Frequency table - Specific Format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Frequency-table-Specific-Format/m-p/710219#M218592</link>
    <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Both PROC REPORT and PROC TABULATE will create this type of table for you. There are other procedures, as well but the report format would be slightly different (PROC MEANS). You could do more cosmetic tweaking and ordering once you're comfortable with the procedures.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1610125478043.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/53314iBFEC818B16FD110B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1610125478043.png" alt="Cynthia_sas_0-1610125478043.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
    <pubDate>Fri, 08 Jan 2021 17:04:47 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2021-01-08T17:04:47Z</dc:date>
    <item>
      <title>Frequency table - Specific Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Frequency-table-Specific-Format/m-p/710204#M218579</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to get a formatted frequency table and I tried PROC freq and tabulate but i can't seem to figure it out. Here is my dataset: I will need the output in a 3 dimensional table. I only need the count and respective totals and in the specific format as shown below.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 144pt;" border="0" width="192" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="56px" height="15px" class="xl63" style="height: 15.0pt; width: 48pt;"&gt;Item&lt;/TD&gt;
&lt;TD width="59px" height="15px" class="xl63" style="width: 48pt;"&gt;Code&lt;/TD&gt;
&lt;TD width="76px" height="15px" class="xl63" style="width: 48pt;"&gt;Category&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="56px" height="15px" class="xl63" style="height: 15.0pt;"&gt;A&lt;/TD&gt;
&lt;TD width="59px" height="15px" class="xl63"&gt;H&lt;/TD&gt;
&lt;TD width="76px" height="15px" class="xl63"&gt;Tar&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="56px" height="15px" class="xl63" style="height: 15.0pt;"&gt;B&lt;/TD&gt;
&lt;TD width="59px" height="15px" class="xl63"&gt;H&lt;/TD&gt;
&lt;TD width="76px" height="15px" class="xl63"&gt;IO&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="56px" height="15px" class="xl63" style="height: 15.0pt;"&gt;C&lt;/TD&gt;
&lt;TD width="59px" height="15px" class="xl63"&gt;L&lt;/TD&gt;
&lt;TD width="76px" height="15px" class="xl63"&gt;End&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="56px" height="15px" class="xl63" style="height: 15.0pt;"&gt;D&lt;/TD&gt;
&lt;TD width="59px" height="15px" class="xl63"&gt;L&lt;/TD&gt;
&lt;TD width="76px" height="15px" class="xl63"&gt;IO&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="56px" height="15px" class="xl63" style="height: 15.0pt;"&gt;A&lt;/TD&gt;
&lt;TD width="59px" height="15px" class="xl63"&gt;H&lt;/TD&gt;
&lt;TD width="76px" height="15px" class="xl63"&gt;End&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="56px" height="15px" class="xl63" style="height: 15.0pt;"&gt;B&lt;/TD&gt;
&lt;TD width="59px" height="15px" class="xl63"&gt;H&lt;/TD&gt;
&lt;TD width="76px" height="15px" class="xl63"&gt;Tar&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="56px" height="15px" class="xl63" style="height: 15.0pt;"&gt;C&lt;/TD&gt;
&lt;TD width="59px" height="15px" class="xl63"&gt;H&lt;/TD&gt;
&lt;TD width="76px" height="15px" class="xl63"&gt;IO&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="56px" height="15px" class="xl63" style="height: 15.0pt;"&gt;D&lt;/TD&gt;
&lt;TD width="59px" height="15px" class="xl63"&gt;L&lt;/TD&gt;
&lt;TD width="76px" height="15px" class="xl63"&gt;End&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="56px" height="15px" class="xl63" style="height: 15.0pt;"&gt;A&lt;/TD&gt;
&lt;TD width="59px" height="15px" class="xl63"&gt;L&lt;/TD&gt;
&lt;TD width="76px" height="15px" class="xl63"&gt;IO&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="56px" height="15px" class="xl63" style="height: 15.0pt;"&gt;B&lt;/TD&gt;
&lt;TD width="59px" height="15px" class="xl63"&gt;L&lt;/TD&gt;
&lt;TD width="76px" height="15px" class="xl63"&gt;End&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="56px" height="15px" class="xl63" style="height: 15.0pt;"&gt;C&lt;/TD&gt;
&lt;TD width="59px" height="15px" class="xl63"&gt;H&lt;/TD&gt;
&lt;TD width="76px" height="15px" class="xl63"&gt;Tar&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="56px" height="15px" class="xl63" style="height: 15.0pt;"&gt;A&lt;/TD&gt;
&lt;TD width="59px" height="15px" class="xl63"&gt;L&lt;/TD&gt;
&lt;TD width="76px" height="15px" class="xl63"&gt;IO&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="56px" height="15px" class="xl63" style="height: 15.0pt;"&gt;B&lt;/TD&gt;
&lt;TD width="59px" height="15px" class="xl63"&gt;H&lt;/TD&gt;
&lt;TD width="76px" height="15px" class="xl63"&gt;End&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="56px" height="15px" class="xl63" style="height: 15.0pt;"&gt;C&lt;/TD&gt;
&lt;TD width="59px" height="15px" class="xl63"&gt;L&lt;/TD&gt;
&lt;TD width="76px" height="15px" class="xl63"&gt;IO&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="56px" height="15px" class="xl63" style="height: 15.0pt;"&gt;D&lt;/TD&gt;
&lt;TD width="59px" height="15px" class="xl63"&gt;H&lt;/TD&gt;
&lt;TD width="76px" height="15px" class="xl63"&gt;End&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Want:&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 288pt;" border="0" width="384" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="64" height="20" style="height: 15.0pt; width: 48pt;"&gt;Item&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;Code&lt;/TD&gt;
&lt;TD width="64" class="xl65" style="width: 48pt;"&gt;Tar&lt;/TD&gt;
&lt;TD width="64" class="xl65" style="width: 48pt;"&gt;IO&lt;/TD&gt;
&lt;TD width="64" class="xl65" style="width: 48pt;"&gt;End&lt;/TD&gt;
&lt;TD width="64" class="xl65" style="width: 48pt;"&gt;Total&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" style="height: 15.0pt;"&gt;A&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl66" style="height: 15.0pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;H&lt;/TD&gt;
&lt;TD class="xl65"&gt;1&lt;/TD&gt;
&lt;TD class="xl65"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl65"&gt;1&lt;/TD&gt;
&lt;TD class="xl65"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl66" style="height: 15.0pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;L&lt;/TD&gt;
&lt;TD class="xl65"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl65"&gt;2&lt;/TD&gt;
&lt;TD class="xl65"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl65"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" style="height: 15.0pt;"&gt;B&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl65"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl65"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl65"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl65"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl66" style="height: 15.0pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;H&lt;/TD&gt;
&lt;TD class="xl65"&gt;1&lt;/TD&gt;
&lt;TD class="xl65"&gt;1&lt;/TD&gt;
&lt;TD class="xl65"&gt;1&lt;/TD&gt;
&lt;TD class="xl65"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl66" style="height: 15.0pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;L&lt;/TD&gt;
&lt;TD class="xl65"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl65"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl65"&gt;1&lt;/TD&gt;
&lt;TD class="xl65"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" style="height: 15.0pt;"&gt;C&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl65"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl65"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl65"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl65"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl66" style="height: 15.0pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;H&lt;/TD&gt;
&lt;TD class="xl65"&gt;1&lt;/TD&gt;
&lt;TD class="xl65"&gt;1&lt;/TD&gt;
&lt;TD class="xl65"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl65"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl66" style="height: 15.0pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;L&lt;/TD&gt;
&lt;TD class="xl65"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl65"&gt;1&lt;/TD&gt;
&lt;TD class="xl65"&gt;1&lt;/TD&gt;
&lt;TD class="xl65"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" style="height: 15.0pt;"&gt;D&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl65"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl65"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl65"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl65"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl66" style="height: 15.0pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;H&lt;/TD&gt;
&lt;TD class="xl65"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl65"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl65"&gt;1&lt;/TD&gt;
&lt;TD class="xl65"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl66" style="height: 15.0pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;L&lt;/TD&gt;
&lt;TD class="xl65"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl65"&gt;1&lt;/TD&gt;
&lt;TD class="xl65"&gt;1&lt;/TD&gt;
&lt;TD class="xl65"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" style="height: 15.0pt;"&gt;Total&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl65"&gt;3&lt;/TD&gt;
&lt;TD class="xl65"&gt;6&lt;/TD&gt;
&lt;TD class="xl65"&gt;6&lt;/TD&gt;
&lt;TD class="xl65"&gt;15&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Fri, 08 Jan 2021 16:49:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Frequency-table-Specific-Format/m-p/710204#M218579</guid>
      <dc:creator>newsas007</dc:creator>
      <dc:date>2021-01-08T16:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Frequency table - Specific Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Frequency-table-Specific-Format/m-p/710210#M218585</link>
      <description>&lt;P&gt;Totals of what? I don't see anything to total. Do you mean count?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When specifying a "must look like this" you really should place the values you need in the body of the example table from the example data. Otherwise you get lots of guesses as to what might work.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 16:29:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Frequency-table-Specific-Format/m-p/710210#M218585</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-01-08T16:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Frequency table - Specific Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Frequency-table-Specific-Format/m-p/710215#M218589</link>
      <description>Sorry: I have edited the table with numbers. Hope this makes more sense now.</description>
      <pubDate>Fri, 08 Jan 2021 16:51:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Frequency-table-Specific-Format/m-p/710215#M218589</guid>
      <dc:creator>newsas007</dc:creator>
      <dc:date>2021-01-08T16:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: Frequency table - Specific Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Frequency-table-Specific-Format/m-p/710219#M218592</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Both PROC REPORT and PROC TABULATE will create this type of table for you. There are other procedures, as well but the report format would be slightly different (PROC MEANS). You could do more cosmetic tweaking and ordering once you're comfortable with the procedures.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1610125478043.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/53314iBFEC818B16FD110B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1610125478043.png" alt="Cynthia_sas_0-1610125478043.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 17:04:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Frequency-table-Specific-Format/m-p/710219#M218592</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2021-01-08T17:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Frequency table - Specific Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Frequency-table-Specific-Format/m-p/710241#M218602</link>
      <description>Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;,&lt;BR /&gt;This works! Thanks so much. The cosmetic tweaking and ordering is tricky and i am trying to learn. Thanks again!</description>
      <pubDate>Fri, 08 Jan 2021 18:01:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Frequency-table-Specific-Format/m-p/710241#M218602</guid>
      <dc:creator>newsas007</dc:creator>
      <dc:date>2021-01-08T18:01:14Z</dc:date>
    </item>
  </channel>
</rss>

