<?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 REPORT with GROUP in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT-with-GROUP/m-p/539068#M7014</link>
    <description>&lt;P&gt;If you want all records collapsed into a group, you need to define the variables as GROUP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=TEST;
COLUMN STATE INDUSTRY INCOME ;
DEFINE STATE/group ;
DEFINE industry/group;
DEFINE INCOME /ANALYSIS sum;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 27 Feb 2019 18:20:27 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-02-27T18:20:27Z</dc:date>
    <item>
      <title>PROC REPORT with GROUP</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT-with-GROUP/m-p/539051#M7013</link>
      <description>&lt;P&gt;Starting from the following example of PROC REPORT:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test(keep=state industry income);
set sashelp.prdsale;
State=region;
Industry=prodtype;
Income=actual;
run;
proc report data=TEST;
COLUMN STATE INDUSTRY INCOME ;
DEFINE STATE/display GROUP;
DEFINE industry/display GROUP ;
DEFINE INCOME /ANALYSIS sum;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If I delete the "GROUP" option I get the display of all the rows:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=TEST;
COLUMN STATE INDUSTRY INCOME ;
DEFINE STATE/display ;
DEFINE industry/display;
DEFINE INCOME /ANALYSIS sum;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I would like to be able to display all the values of "State", without having the multiplication of rows. It's possible?&lt;BR /&gt;I would like to get the following report:&lt;BR /&gt;State Industry Income &lt;BR /&gt;EAST FURNITURE 146471 &lt;BR /&gt;EAST OFFICE 223790 &lt;BR /&gt;WEST FURNITURE 144154 &lt;BR /&gt;WEST OFFICE 215922&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 17:01:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT-with-GROUP/m-p/539051#M7013</guid>
      <dc:creator>mariopellegrini</dc:creator>
      <dc:date>2019-02-27T17:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT with GROUP</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT-with-GROUP/m-p/539068#M7014</link>
      <description>&lt;P&gt;If you want all records collapsed into a group, you need to define the variables as GROUP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=TEST;
COLUMN STATE INDUSTRY INCOME ;
DEFINE STATE/group ;
DEFINE industry/group;
DEFINE INCOME /ANALYSIS sum;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Feb 2019 18:20:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT-with-GROUP/m-p/539068#M7014</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-02-27T18:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT with GROUP</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT-with-GROUP/m-p/539243#M7035</link>
      <description>&lt;P&gt;It does not solve my request. I would like to see the replication of EAST and WEST displayed.&lt;BR /&gt;I would like to get the following report:&lt;BR /&gt;State Industry Income &lt;BR /&gt;EAST FURNITURE 146471 &lt;BR /&gt;EAST OFFICE 223790 &lt;BR /&gt;WEST FURNITURE 144154 &lt;BR /&gt;WEST OFFICE 215922&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 09:29:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT-with-GROUP/m-p/539243#M7035</guid>
      <dc:creator>mariopellegrini</dc:creator>
      <dc:date>2019-02-28T09:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT with GROUP</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT-with-GROUP/m-p/539271#M7038</link>
      <description>&lt;P&gt;Then you need to compute the sums using PROC SUMMARY, and then format the table to the way you'd like it using PROC REPORT.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 12:56:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT-with-GROUP/m-p/539271#M7038</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-02-28T12:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT with GROUP</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT-with-GROUP/m-p/561804#M10643</link>
      <description>&lt;P&gt;Hello Mario,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This procedure solve the problem,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC REPORT DATA=TEST;&lt;BR /&gt;COLUMN STATE INDUSTRY INCOME;&lt;BR /&gt;DEFINE STATE/GROUP;&lt;BR /&gt;DEFINE industry/GROUP;&lt;BR /&gt;DEFINE INCOME /ANALYSIS sum;&lt;BR /&gt;COMPUTE STATE;&lt;BR /&gt;IF STATE NE "" THEN DUMMY=STATE;&lt;BR /&gt;ELSE STATE=DUMMY;&lt;BR /&gt;ENDCOMP;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2019 22:04:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT-with-GROUP/m-p/561804#M10643</guid>
      <dc:creator>ssafmed</dc:creator>
      <dc:date>2019-05-27T22:04:21Z</dc:date>
    </item>
  </channel>
</rss>

