<?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: can anyone help me out to get this output in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/can-anyone-help-me-out-to-get-this-output/m-p/4073#M1286</link>
    <description>Sunil:&lt;BR /&gt;
  &lt;BR /&gt;
--If you only want totals for Salary, then just put Salary in the "Total of" Role. &lt;BR /&gt;
--&lt;B&gt; Do not put any variable under the "Subtotal of" Role. &lt;/B&gt; &lt;BR /&gt;
--Then just put your 2 variables Dept and Sub-Dept under the "Group Analysis By" role. &lt;BR /&gt;
  &lt;BR /&gt;
This should give you just one subtotal for each Sub-Dept EXCEPT at the very bottom where you should see a total line for Sub-Dept, then a total line for Dept, then an OVERALL total line.&lt;BR /&gt;
&lt;BR /&gt;
In order to selectively get subtotals, you'd have to move beyond the LIST DATA task and into the world of PROC REPORT. At the present time, PROC REPORT can only be submitted via a code node. (In the future, there are plans for a GUI interface to PROC REPORT in EG.)&lt;BR /&gt;
 &lt;BR /&gt;
If you cannot get the LIST data task working the way you want or if you need help with a PROC REPORT solution, your best bet is to contact SAS Tech Support.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
    <pubDate>Mon, 06 Aug 2007 18:14:44 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2007-08-06T18:14:44Z</dc:date>
    <item>
      <title>can anyone help me out to get this output</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/can-anyone-help-me-out-to-get-this-output/m-p/4070#M1283</link>
      <description>can anyone help me out to get this output through EG task if any.&lt;BR /&gt;
 dept=10 sub_dept=1 -----------------------&lt;BR /&gt;
&lt;BR /&gt;
               Emp_id    Emp_name    bonus    salary&lt;BR /&gt;
&lt;BR /&gt;
                    1    abc          100      1000 &lt;BR /&gt;
                    2    xyz          100      1000 &lt;BR /&gt;
                    3    hshd         100      1000 &lt;BR /&gt;
                    4    jkcj         100      1000 &lt;BR /&gt;
                    5    jkdj         100      1000 &lt;BR /&gt;
             --------                         ------&lt;BR /&gt;
             sub_dept                          5000 &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
---------------------- dept=10 sub_dept=2 -----------------------&lt;BR /&gt;
&lt;BR /&gt;
               Emp_id    Emp_name    bonus    salary&lt;BR /&gt;
&lt;BR /&gt;
                    6    hvcyudzv     100      1000 &lt;BR /&gt;
                    7    hfyqwwe      100      1000 &lt;BR /&gt;
                    8    rsr          100      1000 &lt;BR /&gt;
             --------                         ------&lt;BR /&gt;
             sub_dept                          3000</description>
      <pubDate>Mon, 06 Aug 2007 13:50:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/can-anyone-help-me-out-to-get-this-output/m-p/4070#M1283</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-08-06T13:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: can anyone help me out to get this output</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/can-anyone-help-me-out-to-get-this-output/m-p/4071#M1284</link>
      <description>Hi:&lt;BR /&gt;
  This looks like the output from a List Data task. On the EG menu, it's under the choice DESCRIBE --&amp;gt; List Data.&lt;BR /&gt;
 &lt;BR /&gt;
In the TASK ROLE pane of the List Data task, you would make your DEPT and SUB-DEPT the "Group analysis by" variables and then your Emp_id, Emp_name, bonus and salary variables would be the "List variables". You would also want to have bonus and/or salary be the "Total of" variables.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 06 Aug 2007 15:53:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/can-anyone-help-me-out-to-get-this-output/m-p/4071#M1284</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-08-06T15:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: can anyone help me out to get this output</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/can-anyone-help-me-out-to-get-this-output/m-p/4072#M1285</link>
      <description>ya I know but the thing is when i keep two columns in my group by as you said then i get two totals for each subgroup.&lt;BR /&gt;
i just want sub total for salary for each dept,subdept pair</description>
      <pubDate>Mon, 06 Aug 2007 16:58:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/can-anyone-help-me-out-to-get-this-output/m-p/4072#M1285</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-08-06T16:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: can anyone help me out to get this output</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/can-anyone-help-me-out-to-get-this-output/m-p/4073#M1286</link>
      <description>Sunil:&lt;BR /&gt;
  &lt;BR /&gt;
--If you only want totals for Salary, then just put Salary in the "Total of" Role. &lt;BR /&gt;
--&lt;B&gt; Do not put any variable under the "Subtotal of" Role. &lt;/B&gt; &lt;BR /&gt;
--Then just put your 2 variables Dept and Sub-Dept under the "Group Analysis By" role. &lt;BR /&gt;
  &lt;BR /&gt;
This should give you just one subtotal for each Sub-Dept EXCEPT at the very bottom where you should see a total line for Sub-Dept, then a total line for Dept, then an OVERALL total line.&lt;BR /&gt;
&lt;BR /&gt;
In order to selectively get subtotals, you'd have to move beyond the LIST DATA task and into the world of PROC REPORT. At the present time, PROC REPORT can only be submitted via a code node. (In the future, there are plans for a GUI interface to PROC REPORT in EG.)&lt;BR /&gt;
 &lt;BR /&gt;
If you cannot get the LIST data task working the way you want or if you need help with a PROC REPORT solution, your best bet is to contact SAS Tech Support.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 06 Aug 2007 18:14:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/can-anyone-help-me-out-to-get-this-output/m-p/4073#M1286</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-08-06T18:14:44Z</dc:date>
    </item>
  </channel>
</rss>

