<?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: Remove blank header in PROC REPORT? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Remove-blank-header-in-PROC-REPORT/m-p/525595#M22144</link>
    <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; And, for completeness, an alternate way to take care of that blank space for Weight, without changing the order of your ACROSS items (which sometimes can be tricky), is to move the column header for AGE up into the COLUMN statement, and then blank it out on the DEFINE statment as shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alternate_report_header.png" style="width: 579px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26115i7E29C908C5E37C56/image-size/large?v=v2&amp;amp;px=999" role="button" title="alternate_report_header.png" alt="alternate_report_header.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;What happens here is that if you move AGE up to the same row where the F and M will be placed, then there is an entirely empty row underneath the Age, the F and the M and so when PROC REPORT detects that the entire row is blank, it doesn't show that row. Note that the COLUMN statement still has Sex, Weight and has a blank for the label of Weight, but now also has a blank for the Age label.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
    <pubDate>Tue, 08 Jan 2019 22:37:05 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2019-01-08T22:37:05Z</dc:date>
    <item>
      <title>Remove blank header in PROC REPORT?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Remove-blank-header-in-PROC-REPORT/m-p/525553#M22138</link>
      <description>&lt;P&gt;Is it possible to remove the blank header shown below?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The starting code I use:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title "Mean Weight by Gender and Age";
proc report data=sashelp.class;
	columns age sex,weight;
	define age/group;
	define sex/across;
	define weight/analysis mean;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But I don't need the word Weight in the table (twice), as it is explained clearly in the title above the table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, I do this, and I get a blank header where the words Weight used to be.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title "Mean Weight by Gender and Age";
proc report data=sashelp.class;
	columns age sex,weight;
	define age/group;
	define sex/across;
	define weight/analysis mean ' ';
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And the table, showing the blank header:&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="Capture.PNG" style="width: 270px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26107iC6CE817A281632B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I remove this blank header in PROC REPORT?&lt;/P&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, 08 Jan 2019 19:46:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Remove-blank-header-in-PROC-REPORT/m-p/525553#M22138</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-01-08T19:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Remove blank header in PROC REPORT?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Remove-blank-header-in-PROC-REPORT/m-p/525558#M22139</link>
      <description>&lt;P&gt;Strange but true.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;columns age WEIGHT,sex;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title "Mean Weight by Gender and Age";
proc report data=sashelp.class;
	columns age weight,sex;
	define age/group;
	define sex/across;
	define weight/analysis mean ' ';
   run;&lt;/CODE&gt;&lt;/PRE&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="Capture.PNG" style="width: 145px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26108i6077F0DE1BC688F5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 20:03:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Remove-blank-header-in-PROC-REPORT/m-p/525558#M22139</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2019-01-08T20:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Remove blank header in PROC REPORT?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Remove-blank-header-in-PROC-REPORT/m-p/525563#M22140</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15410"&gt;@data_null__&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Strange but true.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Indeed.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 20:18:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Remove-blank-header-in-PROC-REPORT/m-p/525563#M22140</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-01-08T20:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Remove blank header in PROC REPORT?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Remove-blank-header-in-PROC-REPORT/m-p/525568#M22141</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15410"&gt;@data_null__&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Strange but true.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Indeed.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you let the label for weight be displayed it will give insight into how/why it works.&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="Capture.PNG" style="width: 144px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26110i9782A347FD4C46EE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 20:34:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Remove-blank-header-in-PROC-REPORT/m-p/525568#M22141</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2019-01-08T20:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Remove blank header in PROC REPORT?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Remove-blank-header-in-PROC-REPORT/m-p/525595#M22144</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; And, for completeness, an alternate way to take care of that blank space for Weight, without changing the order of your ACROSS items (which sometimes can be tricky), is to move the column header for AGE up into the COLUMN statement, and then blank it out on the DEFINE statment as shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alternate_report_header.png" style="width: 579px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26115i7E29C908C5E37C56/image-size/large?v=v2&amp;amp;px=999" role="button" title="alternate_report_header.png" alt="alternate_report_header.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;What happens here is that if you move AGE up to the same row where the F and M will be placed, then there is an entirely empty row underneath the Age, the F and the M and so when PROC REPORT detects that the entire row is blank, it doesn't show that row. Note that the COLUMN statement still has Sex, Weight and has a blank for the label of Weight, but now also has a blank for the Age label.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 22:37:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Remove-blank-header-in-PROC-REPORT/m-p/525595#M22144</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-01-08T22:37:05Z</dc:date>
    </item>
  </channel>
</rss>

