<?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: Removing blank headers in PROC REPORT using across and display variables in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Removing-blank-headers-in-PROC-REPORT-using-across-and-display/m-p/404243#M19616</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report nowd data=example;
column type color,season cost;
 define type / group;
 define season / across ' ';
 define color / display ' ';
 define cost / ' ' noprint;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PROC REPORT without blank line in header under across variable" style="width: 153px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15900i1662073382745B5F/image-size/large?v=v2&amp;amp;px=999" role="button" title="PROC REPORT character variable as across without blank line in header.jpg" alt="PROC REPORT without blank line in header under across variable" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;PROC REPORT without blank line in header under across variable&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia Zender has a more recent paper (&amp;nbsp;&lt;A href="https://www.mwsug.org/proceedings/2014/SS/MWSUG-2014-SS08.pdf" target="_blank"&gt;https://www.mwsug.org/proceedings/2014/SS/MWSUG-2014-SS08.pdf&lt;/A&gt; ) that discusses this.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 14 Oct 2017 20:47:34 GMT</pubDate>
    <dc:creator>SuzanneDorinski</dc:creator>
    <dc:date>2017-10-14T20:47:34Z</dc:date>
    <item>
      <title>Removing blank headers in PROC REPORT using across and display variables</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Removing-blank-headers-in-PROC-REPORT-using-across-and-display/m-p/404236#M19615</link>
      <description>&lt;P&gt;I was trying&amp;nbsp; to get PROC REPORT to suppress blank headers created under the ACROSS variable values.&lt;/P&gt;
&lt;P&gt;There is a nice paper ( &lt;A href="https://support.sas.com/rnd/papers/sgf07/sgf2007-report.pdf" target="_blank"&gt;https://support.sas.com/rnd/papers/sgf07/sgf2007-report.pdf&lt;/A&gt; ) that shows a method that works when displaying a statistic, but it does not work when you are using the ACROSS feature to display a text field.&lt;/P&gt;
&lt;P&gt;Here is the sample data and code used by the paper.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data example;
input Type $ Color $ Season $ Cost;
cards;
flower purple winter 1000
flower pink spring 2000
;
run; 
proc report nowd data=example;
column type cost,season;
 define type / group;
 define season / across ' ';
 define cost / ' ';
run; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The "trick" is to reverse the order of the across and sum variable in the COLUMN statement, putting the sum variable before the comma and the across variable after the comma.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 170px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15897iB1B55D761ABE6455/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now if I try to use the same trick to display the character variable COLOR.&amp;nbsp; Note that to get PROC REPORT to display a character variable under an across variable you need to include at least one numeric variable, which you do not need to print.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report nowd data=example;
column type (color cost),season;
 define type / group;
 define season / across ' ';
 define color / display ' ';
 define cost / ' ' noprint;
run; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The blank headers come back.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 160px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15899iCC412D9F77C99BE8/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Does anyone know if there is a way to make those blank headers go away?&lt;/P&gt;</description>
      <pubDate>Sat, 14 Oct 2017 20:01:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Removing-blank-headers-in-PROC-REPORT-using-across-and-display/m-p/404236#M19615</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-10-14T20:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Removing blank headers in PROC REPORT using across and display variables</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Removing-blank-headers-in-PROC-REPORT-using-across-and-display/m-p/404243#M19616</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report nowd data=example;
column type color,season cost;
 define type / group;
 define season / across ' ';
 define color / display ' ';
 define cost / ' ' noprint;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PROC REPORT without blank line in header under across variable" style="width: 153px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15900i1662073382745B5F/image-size/large?v=v2&amp;amp;px=999" role="button" title="PROC REPORT character variable as across without blank line in header.jpg" alt="PROC REPORT without blank line in header under across variable" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;PROC REPORT without blank line in header under across variable&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia Zender has a more recent paper (&amp;nbsp;&lt;A href="https://www.mwsug.org/proceedings/2014/SS/MWSUG-2014-SS08.pdf" target="_blank"&gt;https://www.mwsug.org/proceedings/2014/SS/MWSUG-2014-SS08.pdf&lt;/A&gt; ) that discusses this.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Oct 2017 20:47:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Removing-blank-headers-in-PROC-REPORT-using-across-and-display/m-p/404243#M19616</guid>
      <dc:creator>SuzanneDorinski</dc:creator>
      <dc:date>2017-10-14T20:47:34Z</dc:date>
    </item>
  </channel>
</rss>

