<?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: how can I get rid of total of sub-total in a multiple by variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-can-I-get-rid-of-total-of-sub-total-in-a-multiple-by/m-p/842830#M333271</link>
    <description>&lt;P&gt;Unfortunately, this is not possible. You would have to use some other reporting procedure like Proc Report or Proc Tabulate.&lt;/P&gt;</description>
    <pubDate>Mon, 07 Nov 2022 08:19:48 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2022-11-07T08:19:48Z</dc:date>
    <item>
      <title>how can I get rid of total of sub-total in a multiple by variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-can-I-get-rid-of-total-of-sub-total-in-a-multiple-by/m-p/842820#M333267</link>
      <description>&lt;P&gt;Hi, just doing an example on pg 135 of the official specialist prep guide, after I run the code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=cert.usa out=temp2;
by manager jobtype;
run;

data budget2 (keep=manager jobtype payroll);
set temp2;
by manager jobtype;

if wagecat='S' then yearly=wagerate*12;
if wagecat='H' then yearly=wagerate*2000;
if first.jobtype then payroll=0;
payroll+yearly;
if last.jobtype;
run;


proc print data=budget2 noobs;
  by manager;
  var jobtype;
  sum payroll;
  where manager in ('Coxe', 'Delgado');
  format payroll dollar12.2;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;the result is this like. How can I get rid of the sum of sub-totals? I only want sub-total to show.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nietzsche_0-1667796206435.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77013i151AC4570FC93A15/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Nietzsche_0-1667796206435.png" alt="Nietzsche_0-1667796206435.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 04:44:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-can-I-get-rid-of-total-of-sub-total-in-a-multiple-by/m-p/842820#M333267</guid>
      <dc:creator>Nietzsche</dc:creator>
      <dc:date>2022-11-07T04:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: how can I get rid of total of sub-total in a multiple by variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-can-I-get-rid-of-total-of-sub-total-in-a-multiple-by/m-p/842830#M333271</link>
      <description>&lt;P&gt;Unfortunately, this is not possible. You would have to use some other reporting procedure like Proc Report or Proc Tabulate.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 08:19:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-can-I-get-rid-of-total-of-sub-total-in-a-multiple-by/m-p/842830#M333271</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2022-11-07T08:19:48Z</dc:date>
    </item>
  </channel>
</rss>

