<?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 tabulate in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-tabulate/m-p/678829#M204957</link>
    <description>Thank you but it is not as I want.&lt;BR /&gt;I want that for both class variables I will see the value in each row</description>
    <pubDate>Mon, 24 Aug 2020 07:45:19 GMT</pubDate>
    <dc:creator>Ronein</dc:creator>
    <dc:date>2020-08-24T07:45:19Z</dc:date>
    <item>
      <title>proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-tabulate/m-p/678816#M204946</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;What is the way that the value under "Type" variable will be in each row of the report ?&lt;/P&gt;
&lt;P&gt;I want to see in each row the value of "Type" var&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate data=sashelp.cars;
class type Cylinders;
var Invoice;
Table type=""*Cylinders='',Invoice*(N SUM) /box='Type/Cylinders';
Run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Aug 2020 06:29:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-tabulate/m-p/678816#M204946</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2020-08-24T06:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-tabulate/m-p/678817#M204947</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate data=sashelp.cars;
class type Cylinders;
var Invoice;
Table Cylinders=''*type="",Invoice*(N SUM) /box='Type/Cylinders';
Run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Aug 2020 06:40:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-tabulate/m-p/678817#M204947</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2020-08-24T06:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-tabulate/m-p/678829#M204957</link>
      <description>Thank you but it is not as I want.&lt;BR /&gt;I want that for both class variables I will see the value in each row</description>
      <pubDate>Mon, 24 Aug 2020 07:45:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-tabulate/m-p/678829#M204957</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2020-08-24T07:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-tabulate/m-p/678852#M204965</link>
      <description>&lt;P&gt;Proc REPORT can present the data the same way as in TABULATE, with the extra caveat of filling in the 'blank' cells.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By default a group cell is blank in subsequent row after it is presented the first time.&amp;nbsp; COMPUTE blocks can be used to track and replace the blank (missing) values with the current group value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc report data=sashelp.cars;
  columns type cylinders invoice,(n sum);
  define type / group;
  define cylinders / group;
  define n / format=8.;
  compute before type;
    type_held = type;
  endcomp;
  compute type;
    if missing(type) then type=type_held;
  endcomp;
run;&lt;/PRE&gt;
&lt;P&gt;REPORT output:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RichardADeVenezia_0-1598267418522.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/48574i50B8B39B84879960/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RichardADeVenezia_0-1598267418522.png" alt="RichardADeVenezia_0-1598267418522.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Versus TABULATE output:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RichardADeVenezia_1-1598267477716.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/48575iA2901A5835E16275/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RichardADeVenezia_1-1598267477716.png" alt="RichardADeVenezia_1-1598267477716.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can get the same aggregation output from Proc MEANS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc means data=sashelp.cars noNOBS N SUM ;
  class type cylinders;
  var invoice;
run;&lt;/PRE&gt;
&lt;P&gt;The default output does not &lt;EM&gt;repeat&lt;/EM&gt; the&amp;nbsp;&lt;STRONG&gt;type&amp;nbsp;&lt;/STRONG&gt;values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RichardADeVenezia_2-1598268155046.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/48576iCAC6DF93E97E0AB6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RichardADeVenezia_2-1598268155046.png" alt="RichardADeVenezia_2-1598268155046.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 11:22:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-tabulate/m-p/678852#M204965</guid>
      <dc:creator>RichardDeVen</dc:creator>
      <dc:date>2020-08-24T11:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-tabulate/m-p/679654#M205251</link>
      <description>I have asked how to create the desired output via proc tabulate ....&lt;BR /&gt;Thank you for the answer but I wanted to understand how to see values of class variables in each row via proc tabulate.&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Aug 2020 06:59:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-tabulate/m-p/679654#M205251</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2020-08-27T06:59:55Z</dc:date>
    </item>
  </channel>
</rss>

