<?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: Problem with proc report - NOTE: Groups are not created because (...) in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Problem-with-proc-report-NOTE-Groups-are-not-created-because/m-p/14696#M2407</link>
    <description>Hi:&lt;BR /&gt;
  You might try using ORDER (which will allow you to do the COMPUTE BEFORE A) instead of GROUP. And then, put your PROTECTSPECIALCHARS=OFF on a STYLE= override for LINES. Although that area (with the treatment group) is like a HEADER, the style is coming from the STYLE(LINE) or on the COMPUTE statment where the LINE is placed.&lt;BR /&gt;
[pre]&lt;BR /&gt;
Ods rtf file="C:\temp\essai.rtf" &lt;BR /&gt;
    headery=720 footery=720 NoToc_Data;&lt;BR /&gt;
PROC REPORT DATA=TEST SPLIT="¤" &lt;BR /&gt;
     NOCENTER NOWD MISSING SPACING=0 &lt;BR /&gt;
     Style(report)=[just=center] &lt;BR /&gt;
     Style(header)=[protectspecialchars=off posttext='\brdrb\brdrs\brdrtnthsg\brdrw10' font_weight=bold just=left];&lt;BR /&gt;
  COLUMN A SPACE_LISTING B SPACE_LISTING C;&lt;BR /&gt;
  COMPUTE BEFORE A /&lt;BR /&gt;
     style={protectspecialchars=off};&lt;BR /&gt;
     LINE '\brdrt\brdrs\brdrhair\brdrw10 \brdrb\brdrs\brdrdash\brdrw10 \b Treatment group=' A;&lt;BR /&gt;
  ENDCOMP;&lt;BR /&gt;
  DEFINE A / LEFT order noprint &lt;BR /&gt;
    Style(column)={CELLWIDTH=72mm};&lt;BR /&gt;
  DEFINE B / LEFT order &lt;BR /&gt;
    Style(column)={CELLWIDTH=12mm};&lt;BR /&gt;
  DEFINE C / LEFT order &lt;BR /&gt;
    Style(column)={CELLWIDTH=14mm};&lt;BR /&gt;
  DEFINE SPACE_LISTING / " " &lt;BR /&gt;
    Style(column)={CELLWIDTH=1mm};&lt;BR /&gt;
RUN;&lt;BR /&gt;
Ods Rtf close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
I made A, B, and C all ORDER variables, but if you don't want C to be ORDER, then change the usage to DISPLAY. GROUP usage tells PROC REPORT to "collapse" or summarize the rows, using the analysis variables on the report. For an example of what I mean, submit this code one time with the usage of "Group" and then submit it a second time with a usage of "Order" and compare the results.&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods listing;&lt;BR /&gt;
proc report data=sashelp.class nowd;&lt;BR /&gt;
  column sex height;&lt;BR /&gt;
  define sex / group;&lt;BR /&gt;
  define height / sum;&lt;BR /&gt;
run;&lt;BR /&gt;
    &lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
    <pubDate>Wed, 30 Apr 2008 11:11:59 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2008-04-30T11:11:59Z</dc:date>
    <item>
      <title>Problem with proc report - NOTE: Groups are not created because (...)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-with-proc-report-NOTE-Groups-are-not-created-because/m-p/14695#M2406</link>
      <description>When I run the proc report detailed below, I have the following message:&lt;BR /&gt;
&lt;BR /&gt;
NOTE: Groups are not created because the usage of SPACE_LISTING is DISPLAY.&lt;BR /&gt;
How can I update my SAS code in order to avoid such messages?&lt;BR /&gt;
Moreover, when I put a 'GROUP' option in the define statement of the variable SPACE_LISTING then the new note message become:&lt;BR /&gt;
NOTE: Groups are not created because the usage of B is DISPLAY.&lt;BR /&gt;
So, I don't understand what can I do?? *** Please help ***!&lt;BR /&gt;
Thank you very much&lt;BR /&gt;
&lt;BR /&gt;
Data TEST;&lt;BR /&gt;
	A=1; B=2; C=3; SPACE_LISTING=""; Output;&lt;BR /&gt;
	A=1; B=4; C=2; SPACE_LISTING=""; Output;&lt;BR /&gt;
	A=1; B=3; C=3; SPACE_LISTING=""; Output;&lt;BR /&gt;
	A=1; B=2; C=1; SPACE_LISTING=""; Output;&lt;BR /&gt;
	A=2; B=2; C=3; SPACE_LISTING=""; Output;&lt;BR /&gt;
	A=2; B=4; C=2; SPACE_LISTING=""; Output;&lt;BR /&gt;
	A=2; B=3; C=3; SPACE_LISTING=""; Output;&lt;BR /&gt;
	A=2; B=2; C=1; SPACE_LISTING=""; Output;&lt;BR /&gt;
Run;&lt;BR /&gt;
Ods rtf file="C:\MyData\essai.rtf" headery=720 footery=720 NoToc_Data;&lt;BR /&gt;
PROC REPORT DATA=TEST SPLIT="¤" NOCENTER NOWD MISSING SPACING=0 Style(report)=[just=center] Style(header)=[protectspecialchars=off posttext='\brdrb\brdrs\brdrtnthsg\brdrw10' font_weight=bold just=left];&lt;BR /&gt;
COLUMN A SPACE_LISTING B SPACE_LISTING C;&lt;BR /&gt;
COMPUTE BEFORE A;&lt;BR /&gt;
	LINE '\brdrt\brdrs\brdrhair\brdrw10 \brdrb\brdrs\brdrdash\brdrw10 \b Treatment group=' A;&lt;BR /&gt;
ENDCOMP;&lt;BR /&gt;
DEFINE A / WIDTH=55 LEFT FLOW GROUP NOPRINT Style(column)={CELLWIDTH=72mm};&lt;BR /&gt;
DEFINE B / WIDTH=9 LEFT FLOW Style(column)={CELLWIDTH=12mm};&lt;BR /&gt;
DEFINE C / WIDTH=10 LEFT FLOW Style(column)={CELLWIDTH=14mm};&lt;BR /&gt;
DEFINE SPACE_LISTING / " " Style(column)={CELLWIDTH=1mm};&lt;BR /&gt;
RUN;&lt;BR /&gt;
Ods Rtf close;</description>
      <pubDate>Wed, 30 Apr 2008 08:33:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-with-proc-report-NOTE-Groups-are-not-created-because/m-p/14695#M2406</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-04-30T08:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with proc report - NOTE: Groups are not created because (...)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-with-proc-report-NOTE-Groups-are-not-created-because/m-p/14696#M2407</link>
      <description>Hi:&lt;BR /&gt;
  You might try using ORDER (which will allow you to do the COMPUTE BEFORE A) instead of GROUP. And then, put your PROTECTSPECIALCHARS=OFF on a STYLE= override for LINES. Although that area (with the treatment group) is like a HEADER, the style is coming from the STYLE(LINE) or on the COMPUTE statment where the LINE is placed.&lt;BR /&gt;
[pre]&lt;BR /&gt;
Ods rtf file="C:\temp\essai.rtf" &lt;BR /&gt;
    headery=720 footery=720 NoToc_Data;&lt;BR /&gt;
PROC REPORT DATA=TEST SPLIT="¤" &lt;BR /&gt;
     NOCENTER NOWD MISSING SPACING=0 &lt;BR /&gt;
     Style(report)=[just=center] &lt;BR /&gt;
     Style(header)=[protectspecialchars=off posttext='\brdrb\brdrs\brdrtnthsg\brdrw10' font_weight=bold just=left];&lt;BR /&gt;
  COLUMN A SPACE_LISTING B SPACE_LISTING C;&lt;BR /&gt;
  COMPUTE BEFORE A /&lt;BR /&gt;
     style={protectspecialchars=off};&lt;BR /&gt;
     LINE '\brdrt\brdrs\brdrhair\brdrw10 \brdrb\brdrs\brdrdash\brdrw10 \b Treatment group=' A;&lt;BR /&gt;
  ENDCOMP;&lt;BR /&gt;
  DEFINE A / LEFT order noprint &lt;BR /&gt;
    Style(column)={CELLWIDTH=72mm};&lt;BR /&gt;
  DEFINE B / LEFT order &lt;BR /&gt;
    Style(column)={CELLWIDTH=12mm};&lt;BR /&gt;
  DEFINE C / LEFT order &lt;BR /&gt;
    Style(column)={CELLWIDTH=14mm};&lt;BR /&gt;
  DEFINE SPACE_LISTING / " " &lt;BR /&gt;
    Style(column)={CELLWIDTH=1mm};&lt;BR /&gt;
RUN;&lt;BR /&gt;
Ods Rtf close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
I made A, B, and C all ORDER variables, but if you don't want C to be ORDER, then change the usage to DISPLAY. GROUP usage tells PROC REPORT to "collapse" or summarize the rows, using the analysis variables on the report. For an example of what I mean, submit this code one time with the usage of "Group" and then submit it a second time with a usage of "Order" and compare the results.&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods listing;&lt;BR /&gt;
proc report data=sashelp.class nowd;&lt;BR /&gt;
  column sex height;&lt;BR /&gt;
  define sex / group;&lt;BR /&gt;
  define height / sum;&lt;BR /&gt;
run;&lt;BR /&gt;
    &lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Wed, 30 Apr 2008 11:11:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-with-proc-report-NOTE-Groups-are-not-created-because/m-p/14696#M2407</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-04-30T11:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with proc report - NOTE: Groups are not created because (...)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-with-proc-report-NOTE-Groups-are-not-created-because/m-p/14697#M2408</link>
      <description>thanks a lot, it works well!&lt;BR /&gt;
BR,&lt;BR /&gt;
Violaine</description>
      <pubDate>Wed, 30 Apr 2008 13:09:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-with-proc-report-NOTE-Groups-are-not-created-because/m-p/14697#M2408</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-04-30T13:09:47Z</dc:date>
    </item>
  </channel>
</rss>

