<?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: column names on the same row? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-column-names-on-the-same-row/m-p/192482#M48321</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How do I put all the column names on the same row?&lt;/P&gt;&lt;P&gt;Currently, OU and Department are showing up on the row beneath 2013 and 2014 (i.e. the years from the ydoi variable).&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc report data=ou_sum nowd out=test&lt;/P&gt;&lt;P&gt; style(header)=[font_weight=bold background=CX90D9D7 ];&lt;/P&gt;&lt;P&gt; options missing='0';&lt;/P&gt;&lt;P&gt; column bu operating_unit ydoi, (dart_tot);&lt;/P&gt;&lt;P&gt; define bu / group style(column)={just=l} "OU";&lt;/P&gt;&lt;P&gt; define operating_unit / group style(column)={just=l} "Department";&lt;/P&gt;&lt;P&gt; define ydoi / across "";&lt;/P&gt;&lt;P&gt; define dart_tot / style(column)={just=r} "";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Mar 2014 01:26:08 GMT</pubDate>
    <dc:creator>gzr2mz39</dc:creator>
    <dc:date>2014-03-05T01:26:08Z</dc:date>
    <item>
      <title>Proc Report: column names on the same row?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-column-names-on-the-same-row/m-p/192482#M48321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How do I put all the column names on the same row?&lt;/P&gt;&lt;P&gt;Currently, OU and Department are showing up on the row beneath 2013 and 2014 (i.e. the years from the ydoi variable).&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc report data=ou_sum nowd out=test&lt;/P&gt;&lt;P&gt; style(header)=[font_weight=bold background=CX90D9D7 ];&lt;/P&gt;&lt;P&gt; options missing='0';&lt;/P&gt;&lt;P&gt; column bu operating_unit ydoi, (dart_tot);&lt;/P&gt;&lt;P&gt; define bu / group style(column)={just=l} "OU";&lt;/P&gt;&lt;P&gt; define operating_unit / group style(column)={just=l} "Department";&lt;/P&gt;&lt;P&gt; define ydoi / across "";&lt;/P&gt;&lt;P&gt; define dart_tot / style(column)={just=r} "";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 01:26:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-column-names-on-the-same-row/m-p/192482#M48321</guid>
      <dc:creator>gzr2mz39</dc:creator>
      <dc:date>2014-03-05T01:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report: column names on the same row?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-column-names-on-the-same-row/m-p/192483#M48322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; The code below shows 2 possible solutions. The issue with your code is that you are blanking the headers for YDOI and DART_TOT, but BU and OPERATING_UNIT headers are still on the report header row at the same level as the blanked out headers -- they do not "move up" automatically. Review the output from #1 and #2 and compare it to the #3 output. Since you did not provide data, I made some fake data using SASHELP.PRDSALE.&lt;/P&gt;&lt;P&gt;Cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;data ou_sum(keep=ydoi bu operating_unit dart_tot);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; set sashelp.prdsale;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; ydoi = year;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; bu = region;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; operating_unit = prodtype;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; dart_tot = actual;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;options missing='0';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods listing close;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods html file='c:\temp\proc_report_column.html';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc report data=ou_sum nowd &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(header)=[font_weight=bold background=CX90D9D7 ];&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title '1) Use Headers in Column Statement';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;column ('OU' bu) ('Department' operating_unit) ydoi,dart_tot;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;define bu / group style(column)={just=l} " ";&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;define operating_unit / group style(column)={just=l} " ";&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;define ydoi / across " ";&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;define dart_tot / sum style(column)={just=r} " ";&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc report data=ou_sum nowd &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(header)=[font_weight=bold background=CX90D9D7 ];&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title '2) put dart_tot before ydoi in the COLUMN statement';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;column bu operating_unit&amp;nbsp; dart_tot,ydoi;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;define bu / group style(column)={just=l} "OU";&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;define operating_unit / group style(column)={just=l} "Department";&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;define ydoi / across " ";&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;define dart_tot / sum style(column)={just=r} " ";&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc report data=ou_sum nowd &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(header)=[font_weight=bold background=CX90D9D7 ];&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title '3) wrong syntax for blanking header';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title2 'Proc report will only suppress an entirely empty row';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;column bu operating_unit ydoi,dart_tot;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;define bu / group style(column)={just=l} "OU";&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;define operating_unit / group style(column)={just=l} "Department";&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;define ydoi / across "";&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;define dart_tot / sum style(column)={just=r} "";&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods html close;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 04:34:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-column-names-on-the-same-row/m-p/192483#M48322</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2014-03-05T04:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report: column names on the same row?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-column-names-on-the-same-row/m-p/192484#M48323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2014 00:32:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-column-names-on-the-same-row/m-p/192484#M48323</guid>
      <dc:creator>gzr2mz39</dc:creator>
      <dc:date>2014-03-06T00:32:30Z</dc:date>
    </item>
  </channel>
</rss>

