<?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 &amp;quot;Groups are not created...&amp;quot; warning in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-report-quot-Groups-are-not-created-quot-warning/m-p/476587#M71230</link>
    <description>&lt;P&gt;Questions of this sort have been asked and answered many times, but I am not seeing the exact solution I need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have codes for institutions, and sites that are affiliated with those institutions.&amp;nbsp; A subset of the data follows:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;instcode&lt;/TD&gt;&lt;TD&gt;afflcode&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;83&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;83&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;83&lt;/TD&gt;&lt;TD&gt;13&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;83&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;83&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;83&lt;/TD&gt;&lt;TD&gt;11&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;83&lt;/TD&gt;&lt;TD&gt;17&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;83&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;83&lt;/TD&gt;&lt;TD&gt;14&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;73&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;73&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;73&lt;/TD&gt;&lt;TD&gt;22&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;73&lt;/TD&gt;&lt;TD&gt;17&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;73&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;73&lt;/TD&gt;&lt;TD&gt;16&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;73&lt;/TD&gt;&lt;TD&gt;13&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want a report that lists the instcode, and the afflcode (among other things).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code is :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc report data=dset spanrows;&lt;BR /&gt;columns instcode afflcode;&lt;/P&gt;&lt;P&gt;define instcode/ 'inst' order=data group;&lt;BR /&gt;define afflcode/ 'affiliate' order=data;&lt;/P&gt;&lt;P&gt;compute after instcode;&lt;BR /&gt;line ' ';&lt;BR /&gt;endcomp;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The output looks fine,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="reportoutput.JPG" style="width: 101px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21665i679E6D0E4D99C747/image-size/large?v=v2&amp;amp;px=999" role="button" title="reportoutput.JPG" alt="reportoutput.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I get the warning&lt;/P&gt;&lt;P&gt;"NOTE: Groups are not created because the usage of afflcode is DISPLAY. To avoid this note,&lt;BR /&gt;change all GROUP variables to ORDER variables."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I change instcode to order, I get&lt;/P&gt;&lt;P&gt;"ERROR: You can only BREAK on GROUPing and ORDERing variables."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the output definitely does not look right.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't want to ignore the error as I feel I am doing that at potential peril.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help anyone has would be greatly appreciated.&lt;/P&gt;</description>
    <pubDate>Mon, 09 Jul 2018 20:24:18 GMT</pubDate>
    <dc:creator>jtcowder</dc:creator>
    <dc:date>2018-07-09T20:24:18Z</dc:date>
    <item>
      <title>Proc report "Groups are not created..." warning</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-report-quot-Groups-are-not-created-quot-warning/m-p/476587#M71230</link>
      <description>&lt;P&gt;Questions of this sort have been asked and answered many times, but I am not seeing the exact solution I need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have codes for institutions, and sites that are affiliated with those institutions.&amp;nbsp; A subset of the data follows:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;instcode&lt;/TD&g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lt;TD&gt;73&lt;/TD&gt;&lt;TD&gt;13&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want a report that lists the instcode, and the afflcode (among other things).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code is :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc report data=dset spanrows;&lt;BR /&gt;columns instcode afflcode;&lt;/P&gt;&lt;P&gt;define instcode/ 'inst' order=data group;&lt;BR /&gt;define afflcode/ 'affiliate' order=data;&lt;/P&gt;&lt;P&gt;compute after instcode;&lt;BR /&gt;line ' ';&lt;BR /&gt;endcomp;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The output looks fine,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="reportoutput.JPG" style="width: 101px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21665i679E6D0E4D99C747/image-size/large?v=v2&amp;amp;px=999" role="button" title="reportoutput.JPG" alt="reportoutput.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I get the warning&lt;/P&gt;&lt;P&gt;"NOTE: Groups are not created because the usage of afflcode is DISPLAY. To avoid this note,&lt;BR /&gt;change all GROUP variables to ORDER variables."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I change instcode to order, I get&lt;/P&gt;&lt;P&gt;"ERROR: You can only BREAK on GROUPing and ORDERing variables."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the output definitely does not look right.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't want to ignore the error as I feel I am doing that at potential peril.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help anyone has would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jul 2018 20:24:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-report-quot-Groups-are-not-created-quot-warning/m-p/476587#M71230</guid>
      <dc:creator>jtcowder</dc:creator>
      <dc:date>2018-07-09T20:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report "Groups are not created..." warning</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-report-quot-Groups-are-not-created-quot-warning/m-p/476670#M71240</link>
      <description>&lt;P&gt;Hi jtcowder,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data work.dset;
  input instcode $4. afflcode $2.  ;
  cards;
083	01
083	01
083	13
083	10
083	05
083	11
083	17
083	02
083	14
073	01
073	01
073	22
073	17
073	10
073	16
073	13
;
run;

proc sort data = work.dset out = work.dset_new;
by instcode afflcode;


proc report data=work.dset_new ;
	columns instcode afflcode;

	define instcode/ 'inst'  order order=internal;
	define afflcode/ 'affiliate';
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jul 2018 06:21:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-report-quot-Groups-are-not-created-quot-warning/m-p/476670#M71240</guid>
      <dc:creator>DJongman</dc:creator>
      <dc:date>2018-07-10T06:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report "Groups are not created..." warning</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-report-quot-Groups-are-not-created-quot-warning/m-p/476825#M71243</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The "order" statement was what I was missing.&lt;/P&gt;&lt;P&gt;Once I put the "order order=data" in the message went away.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jul 2018 14:21:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-report-quot-Groups-are-not-created-quot-warning/m-p/476825#M71243</guid>
      <dc:creator>jtcowder</dc:creator>
      <dc:date>2018-07-10T14:21:58Z</dc:date>
    </item>
  </channel>
</rss>

