<?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 Proc Report, 2 Group variables in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-2-Group-variables/m-p/18191#M3545</link>
    <description>Is there a way to avoid repetition of the first group id in the first row after the summary line when this one was produced by break before ... / summarize? See the following code:&lt;BR /&gt;
  proc report data=sashelp.class headskip nowd;&lt;BR /&gt;
    column sex name (age height weight),mean;&lt;BR /&gt;
    define sex  / group width=3;&lt;BR /&gt;
    define name / group;&lt;BR /&gt;
    break before sex / summarize;&lt;BR /&gt;
    break after sex  / skip;&lt;BR /&gt;
    compute before sex; name='Total'; endcomp;&lt;BR /&gt;
  run;</description>
    <pubDate>Mon, 18 Oct 2010 08:35:49 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2010-10-18T08:35:49Z</dc:date>
    <item>
      <title>Proc Report, 2 Group variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-2-Group-variables/m-p/18191#M3545</link>
      <description>Is there a way to avoid repetition of the first group id in the first row after the summary line when this one was produced by break before ... / summarize? See the following code:&lt;BR /&gt;
  proc report data=sashelp.class headskip nowd;&lt;BR /&gt;
    column sex name (age height weight),mean;&lt;BR /&gt;
    define sex  / group width=3;&lt;BR /&gt;
    define name / group;&lt;BR /&gt;
    break before sex / summarize;&lt;BR /&gt;
    break after sex  / skip;&lt;BR /&gt;
    compute before sex; name='Total'; endcomp;&lt;BR /&gt;
  run;</description>
      <pubDate>Mon, 18 Oct 2010 08:35:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-2-Group-variables/m-p/18191#M3545</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-10-18T08:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report, 2 Group variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-2-Group-variables/m-p/18192#M3546</link>
      <description>You could add a second compute block:&lt;BR /&gt;
&lt;BR /&gt;
proc report data=sashelp.class headskip nowd;&lt;BR /&gt;
column sex name (age height weight),mean;&lt;BR /&gt;
define sex / group width=3;&lt;BR /&gt;
define name / group;&lt;BR /&gt;
break before sex / summarize;&lt;BR /&gt;
break after sex / skip;&lt;BR /&gt;
compute before sex; name='Total'; endcomp;&lt;BR /&gt;
compute sex;&lt;BR /&gt;
	IF UPCASE(_BREAK_) NE 'SEX'  THEN SEX= ' ';&lt;BR /&gt;
ENDCOMP;&lt;BR /&gt;
run;</description>
      <pubDate>Mon, 18 Oct 2010 10:39:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-2-Group-variables/m-p/18192#M3546</guid>
      <dc:creator>polingjw</dc:creator>
      <dc:date>2010-10-18T10:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report, 2 Group variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-2-Group-variables/m-p/18193#M3547</link>
      <description>Hi:&lt;BR /&gt;
  Also, if you are going to use ODS eventually to send this output to RTF, PDF or HTML output files, remember that options such as HEADLINE, HEADSKIP, SKIP, and WIDTH= are only used by the LISTING window and will not work for other ODS destinations. So, for example, if you wanted to perform the EQUIVALENT of a SKIP for other ODS destinations, you would need to add:&lt;BR /&gt;
[pre]&lt;BR /&gt;
   compute after sex;&lt;BR /&gt;
       line ' ';&lt;BR /&gt;
   endcomp;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                     &lt;BR /&gt;
because the SKIP in your code would be ignored.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 18 Oct 2010 14:46:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-2-Group-variables/m-p/18193#M3547</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-10-18T14:46:33Z</dc:date>
    </item>
  </channel>
</rss>

