<?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 NOTE: Groups are not created. . . in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT-NOTE-Groups-are-not-created/m-p/575220#M12823</link>
    <description>Glad you figured it out. I would suggest posting your revised code for other and marking that as the answer so this thread can be closed &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
    <pubDate>Sun, 21 Jul 2019 19:52:27 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-07-21T19:52:27Z</dc:date>
    <item>
      <title>PROC REPORT NOTE: Groups are not created. . .</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT-NOTE-Groups-are-not-created/m-p/575155#M12817</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 492px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31171i563211E26465ABCE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hello SAS Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just started working with proc report this week and I'm having a hard time creating a report. My study is a descriptive comparison of various factors between 2 groups. I already have a dataset with all my descriptive stats created. However, when I run my proc report code, I get this message "NOTE: Groups are not created because the usage of levels is DISPLAY. To avoid this note, change all&lt;BR /&gt;GROUP variables to ORDER variables." and my report is partially displayed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my code:&lt;/P&gt;&lt;P&gt;proc report data = report_data nowd&lt;/P&gt;&lt;P&gt;column groupnr indexvar variable levels (Casepct Controlpct pvalue);&lt;BR /&gt;define groupnr /order noprint;&lt;BR /&gt;define indexvar / order noprint;&lt;BR /&gt;define variable /"Characteristics" group;&lt;BR /&gt;define levels / " " ;&lt;BR /&gt;define Casepct / "Group A" ;&lt;BR /&gt;define Controlpct / "Group B";&lt;BR /&gt;define pvalue / "P-value" group format = pvalue6.4;&lt;BR /&gt;compute before groupnr;&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;This is what I want my report to look like (screenshot attached above).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help will be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Jul 2019 17:41:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT-NOTE-Groups-are-not-created/m-p/575155#M12817</guid>
      <dc:creator>doctortimi</dc:creator>
      <dc:date>2019-07-20T17:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT NOTE: Groups are not created. . .</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT-NOTE-Groups-are-not-created/m-p/575156#M12818</link>
      <description>&lt;P&gt;If you want to post a photo don't do it as an attachment.&amp;nbsp; Instead click on the Photos icon in the menu bar and it will let you paste or upload your photo.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Jul 2019 17:36:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT-NOTE-Groups-are-not-created/m-p/575156#M12818</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-20T17:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT NOTE: Groups are not created. . .</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT-NOTE-Groups-are-not-created/m-p/575157#M12819</link>
      <description>&lt;P&gt;Noted. Thank you.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Jul 2019 17:39:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT-NOTE-Groups-are-not-created/m-p/575157#M12819</guid>
      <dc:creator>doctortimi</dc:creator>
      <dc:date>2019-07-20T17:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT NOTE: Groups are not created. . .</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT-NOTE-Groups-are-not-created/m-p/575171#M12820</link>
      <description>Ok, so what are you getting and what does the log show? Which part isn't working, and what does your input look like? Can you replicate the whole process by using SAShelp.heart?</description>
      <pubDate>Sat, 20 Jul 2019 23:05:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT-NOTE-Groups-are-not-created/m-p/575171#M12820</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-20T23:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT NOTE: Groups are not created. . .</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT-NOTE-Groups-are-not-created/m-p/575172#M12821</link>
      <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for replying. My report is actually displaying only the results of my continuous variables. I tried the same code with the sashelp.heart dataset and it's the same output I get in proc report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm attaching my sashelp input dataset and proc report code. For this test data, I am comparing a few variables between Dead/Alive groups.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data = report_data nowd;

	column groupnr indexvar variable levels (Case__n_pct Control__n_pct 
        pvalue);
	define groupnr /order noprint;
	define indexvar / order noprint;
	define variable /"Characteristics" group;
	define levels / " " style(column) = {cellwidth = 1.25in};
	define Case__n_pct / "Dead";
	define Control__n_pct / "Alive";
	define pvalue / "P-value" group format = pvalue6.4;
	compute before groupnr;
 	line ' ';
	endcomp;
run; &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 20 Jul 2019 23:49:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT-NOTE-Groups-are-not-created/m-p/575172#M12821</guid>
      <dc:creator>doctortimi</dc:creator>
      <dc:date>2019-07-20T23:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT NOTE: Groups are not created. . .</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT-NOTE-Groups-are-not-created/m-p/575174#M12822</link>
      <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I figured it out. There was an error in my code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jul 2019 00:43:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT-NOTE-Groups-are-not-created/m-p/575174#M12822</guid>
      <dc:creator>doctortimi</dc:creator>
      <dc:date>2019-07-21T00:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT NOTE: Groups are not created. . .</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT-NOTE-Groups-are-not-created/m-p/575220#M12823</link>
      <description>Glad you figured it out. I would suggest posting your revised code for other and marking that as the answer so this thread can be closed &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Sun, 21 Jul 2019 19:52:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT-NOTE-Groups-are-not-created/m-p/575220#M12823</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-21T19:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT NOTE: Groups are not created. . .</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT-NOTE-Groups-are-not-created/m-p/575872#M12948</link>
      <description>&lt;P&gt;Attached is the updated code. I had used a different variable in my input dataset to define the 2 groups and p-values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;proc&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;report&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; report_data nowd&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;

	&lt;SPAN class="token keyword"&gt;column&lt;/SPAN&gt; groupnr indexvar variable levels &lt;SPAN class="token punctuation"&gt;(Case__n_percent Control__n_percent&lt;/SPAN&gt;
        prob&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
	&lt;SPAN class="token keyword"&gt;define&lt;/SPAN&gt; groupnr &lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt;order noprint&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
	&lt;SPAN class="token keyword"&gt;define&lt;/SPAN&gt; indexvar &lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt; order noprint&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
	&lt;SPAN class="token keyword"&gt;define&lt;/SPAN&gt; variable &lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"Characteristics"&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;group&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
	&lt;SPAN class="token keyword"&gt;define&lt;/SPAN&gt; levels &lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;" "&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;style&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token keyword"&gt;column&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;{&lt;/SPAN&gt;cellwidth &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token number"&gt;1.25&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;in&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;}&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
	&lt;SPAN class="token keyword"&gt;define&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;Case__n_percent &lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;"Dead"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
	&lt;SPAN class="token keyword"&gt;define&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;Control__n_percent&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;"Alive"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
	&lt;SPAN class="token keyword"&gt;define&lt;/SPAN&gt; prob&lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;"P-value"&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;group&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;format&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; pvalue6&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;4&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
	&lt;SPAN class="token keyword"&gt;compute&lt;/SPAN&gt; before groupnr&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
 	line &lt;SPAN class="token string"&gt;' '&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
	&lt;SPAN class="token keyword"&gt;endcomp&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you, Reeza!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 16:01:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT-NOTE-Groups-are-not-created/m-p/575872#M12948</guid>
      <dc:creator>doctortimi</dc:creator>
      <dc:date>2019-07-23T16:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT NOTE: Groups are not created. . .</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT-NOTE-Groups-are-not-created/m-p/575874#M12950</link>
      <description>If you COLUMN statement as VAR1 VAR2 ... and you define VAR2 as GROUP, then VAR1 must be GROUP also.&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Jul 2019 16:06:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT-NOTE-Groups-are-not-created/m-p/575874#M12950</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-23T16:06:37Z</dc:date>
    </item>
  </channel>
</rss>

