<?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 column grouping not matching up. in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-column-grouping-not-matching-up/m-p/611113#M76788</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/30770"&gt;@scify&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you tried to remove the "across" option in the DEFINE col5 statement ?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
	input col1 $ col2 $ col3 $ col4 $ col5 $ @@ ;
	datalines;
foo bar foo bar foo
bar foo bar foo foo
foo bar foo bar foo
;
proc print 
;
run;
proc report data=test spanrows nowd
	style(header)={bordertopwidth=.5 borderbottomwidth=.5
		borderleftwidth=.5 borderrightwidth=.5 borderstyle=solid
		bordercolor=black};
	column ('Overall' (("Group 1" (col1 col2)) ("Group 2" (col3 col4)) ("Group 3" (col5)) ));
	define col1 / " " style(column)={width=100%};
	define col2 / " " style(column)={width=100%};
	define col3 / " " style(column)={width=100%};
	define col4 / " " style(column)={width=100%};
	define col5 / " " style(column)={width=100% vjust=m just=c tagattr='wrap:yes'};
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 11 Dec 2019 19:31:27 GMT</pubDate>
    <dc:creator>ed_sas_member</dc:creator>
    <dc:date>2019-12-11T19:31:27Z</dc:date>
    <item>
      <title>Proc Report column grouping not matching up.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-column-grouping-not-matching-up/m-p/611083#M76787</link>
      <description>&lt;P&gt;I'm trying to add a column with a manual title to an already existing proc report. However, when I add the code to the column line, the resulting report puts all of the new data in the title rows rather than the table, then fills the table cells in with 1. Here's my code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
	input col1 $ col2 $ col3 $ col4 $ col5 $ @@ ;
	datalines;
foo bar foo bar foo
bar foo bar foo foo
foo bar foo bar foo
;

proc report data=test spanrows nowd
	style(header)={bordertopwidth=.5 borderbottomwidth=.5
		borderleftwidth=.5 borderrightwidth=.5 borderstyle=solid
		bordercolor=black};
	column ('Overall' (("Group 1" (col1 col2)) ("Group 2" (col3 col4)) ("Group 3" (col5)) ));
	define col1 / " " style(column)={width=100%};
	define col2 / " " style(column)={width=100%};
	define col3 / " " style(column)={width=100%};
	define col4 / " " style(column)={width=100%};
	define col5 / " " across style(column)={width=100% vjust=m just=c tagattr='wrap:yes'};
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The result I'm getting is this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="report issue.png" style="width: 203px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/34676i507B32FB13AAC20B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="report issue.png" alt="report issue.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;What I'm looking for is Group 3 to be on the same row as Group 1 and Group 2, and 'foo' to be in the cells where the 1s are. As far as I can tell, my column statement is nested properly, and messing with the&amp;nbsp;the final group doesn't seem to change anything. What am I missing?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 17:41:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-column-grouping-not-matching-up/m-p/611083#M76787</guid>
      <dc:creator>scify</dc:creator>
      <dc:date>2019-12-11T17:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report column grouping not matching up.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-column-grouping-not-matching-up/m-p/611113#M76788</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/30770"&gt;@scify&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you tried to remove the "across" option in the DEFINE col5 statement ?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
	input col1 $ col2 $ col3 $ col4 $ col5 $ @@ ;
	datalines;
foo bar foo bar foo
bar foo bar foo foo
foo bar foo bar foo
;
proc print 
;
run;
proc report data=test spanrows nowd
	style(header)={bordertopwidth=.5 borderbottomwidth=.5
		borderleftwidth=.5 borderrightwidth=.5 borderstyle=solid
		bordercolor=black};
	column ('Overall' (("Group 1" (col1 col2)) ("Group 2" (col3 col4)) ("Group 3" (col5)) ));
	define col1 / " " style(column)={width=100%};
	define col2 / " " style(column)={width=100%};
	define col3 / " " style(column)={width=100%};
	define col4 / " " style(column)={width=100%};
	define col5 / " " style(column)={width=100% vjust=m just=c tagattr='wrap:yes'};
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Dec 2019 19:31:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-column-grouping-not-matching-up/m-p/611113#M76788</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2019-12-11T19:31:27Z</dc:date>
    </item>
  </channel>
</rss>

