<?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: Change proc report header for certain columns in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Change-proc-report-header-for-certain-columns/m-p/297042#M60243</link>
    <description>&lt;P&gt;A million thanks to you!!!&amp;nbsp; This is just what I needed.&lt;/P&gt;</description>
    <pubDate>Wed, 07 Sep 2016 18:29:48 GMT</pubDate>
    <dc:creator>statistician13</dc:creator>
    <dc:date>2016-09-07T18:29:48Z</dc:date>
    <item>
      <title>Change proc report header for certain columns</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Change-proc-report-header-for-certain-columns/m-p/296791#M60219</link>
      <description>&lt;P&gt;I have a SAS dataset that I created using a proc sql full outer join statement from table A and table B.&amp;nbsp; The resulting table contains 5 columns/variables from table A and 3 columns/variables from table B.&amp;nbsp; Now, I'd like to simply dump out these columns of raw data in a proc report with the variable lables as headers, but over the first 5 columns I'd like a header panel (like an across varible) to read "Dataset A" and across the top of the next 3 columns, I'd like to see a header panel that reads "Dataset B."&amp;nbsp; Is there a good way to do this?&lt;BR /&gt;&lt;BR /&gt;PS.&amp;nbsp; I'm open to using other procedures too if this is easier in something like proc tabulate (or proc print even since I'm just dumping the contents of the dataset and not summarizing the data).&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 18:10:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Change-proc-report-header-for-certain-columns/m-p/296791#M60219</guid>
      <dc:creator>statistician13</dc:creator>
      <dc:date>2016-09-06T18:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Change proc report header for certain columns</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Change-proc-report-header-for-certain-columns/m-p/296818#M60220</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe that the following code will solve&amp;nbsp;what you are looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
input a b c d e x $ y $ z $;
datalines;
1 3 4 0 1 no yes no
2 1 5 3 5 yes yes no
3 2 6 4 3 no no no
4 2 9 5 2 no no yes
5 1 3 9 7 no yes no
6 2 4 2 8 yes yes yes
7 3 4 8 4 no no no
;
run;

proc report data = test missing;
column ("Dataset 1 " a b c d e) ("Dataset 2" x y z);
define a / group;
define b / group;
define c / group;
define d / group;
define e / group;
define x / group;
define y / group;
define z / group;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/4849i9253AFA12405E83C/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="Capture.PNG" title="Capture.PNG" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 19:49:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Change-proc-report-header-for-certain-columns/m-p/296818#M60220</guid>
      <dc:creator>howarder</dc:creator>
      <dc:date>2016-09-06T19:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Change proc report header for certain columns</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Change-proc-report-header-for-certain-columns/m-p/296824#M60221</link>
      <description>&lt;P&gt;PERFECT!!!!!&amp;nbsp; I had no idea you could do that (or maybe i did at one time, but forgot).&amp;nbsp; Thanks so much for this.&amp;nbsp; I really appreciate your taking the time to help!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 19:59:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Change-proc-report-header-for-certain-columns/m-p/296824#M60221</guid>
      <dc:creator>statistician13</dc:creator>
      <dc:date>2016-09-06T19:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Change proc report header for certain columns</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Change-proc-report-header-for-certain-columns/m-p/296893#M60228</link>
      <description>&lt;P&gt;One follow-up question to this.&amp;nbsp; Do you know how to gain control over the styling of the top panel ("Dataset 1" and "Dataset 2")?&amp;nbsp; I have no problem applying styles to the columns and headers, but can't seem to figure out how to get control over the top panels?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2016 04:27:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Change-proc-report-header-for-certain-columns/m-p/296893#M60228</guid>
      <dc:creator>statistician13</dc:creator>
      <dc:date>2016-09-07T04:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Change proc report header for certain columns</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Change-proc-report-header-for-certain-columns/m-p/296947#M60230</link>
      <description>&lt;P&gt;You can use the ods escapechar to change the style of the headers. I would also look into this paper on the different options with escapechar that you can use: &lt;A href="http://www2.sas.com/proceedings/forum2007/099-2007.pdf" target="_self"&gt;http://www2.sas.com/proceedings/forum2007/099-2007.pdf&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods escapechar = "#";
proc report data = test missing;
column ("#S={fontsize=8pt font_face=courier font_weight=bold color=red}Dataset 1 " a b c d e) &lt;BR /&gt;("#S={fontstyle=italic}Dataset 2" x y z);
define a / group;
define b / group;
define c / group;
define d / group;
define e / group;
define x / group;
define y / group;
define z / group;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/4853i4775721D84264847/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="Capture3.PNG" title="Capture3.PNG" /&gt;&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>Wed, 07 Sep 2016 12:54:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Change-proc-report-header-for-certain-columns/m-p/296947#M60230</guid>
      <dc:creator>howarder</dc:creator>
      <dc:date>2016-09-07T12:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Change proc report header for certain columns</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Change-proc-report-header-for-certain-columns/m-p/297042#M60243</link>
      <description>&lt;P&gt;A million thanks to you!!!&amp;nbsp; This is just what I needed.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2016 18:29:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Change-proc-report-header-for-certain-columns/m-p/297042#M60243</guid>
      <dc:creator>statistician13</dc:creator>
      <dc:date>2016-09-07T18:29:48Z</dc:date>
    </item>
  </channel>
</rss>

