<?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 / horizontal column title in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-horizontal-column-title/m-p/418392#M67748</link>
    <description>&lt;P&gt;You can change the order of the across and analysis variable in the COLUMN statement to achieve something similar. This allows you to have a common heading and suppress one heading using an empty label.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a look at the sample below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* 
 * default layout 
 */
proc report data=sashelp.cars;
  column type origin, invoice;
  define type / group;
  define origin / across;
  define invoice / analysis mean;
run;

/*
 * analysis before across var
 */
proc report data=sashelp.cars;
  column type invoice, origin;
  define type / group;
  define origin / across " ";
  define invoice / analysis mean "Invoice mean";
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 05 Dec 2017 08:37:46 GMT</pubDate>
    <dc:creator>BrunoMueller</dc:creator>
    <dc:date>2017-12-05T08:37:46Z</dc:date>
    <item>
      <title>Proc Report / horizontal column title</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-horizontal-column-title/m-p/418336#M67744</link>
      <description>&lt;P&gt;Please help with direct input in my code below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-How to modify separate&amp;nbsp;"Prevelance" cells&amp;nbsp;into one single title style&amp;nbsp;of "Prevalence"?&lt;/P&gt;&lt;P&gt;-How&amp;nbsp;to&amp;nbsp;left align the cell data?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would love to read complete SAS documentations to accomplish this but this&amp;nbsp;time&amp;nbsp;I run out of time so bad.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=have nofs headline headskip;
title "Table Title";
column year agecat bf_firstyear,pr_obs pr_obs=average;
define year/group width=4 'Year';
define agecat/group format=agecat. 'Age Groups'; 
define bf_firstyear/across 'Column title' format=format.; 
define pr_obs/display sum format=8.1 'Prevalence';
define average/analysis mean format=comma10.1 'Average';
run; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Image shows my&amp;nbsp;current output (data blurred).&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="sas support.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/17000i1738DD0721B4256A/image-size/large?v=v2&amp;amp;px=999" role="button" title="sas support.png" alt="sas support.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2017 01:00:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-horizontal-column-title/m-p/418336#M67744</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2017-12-05T01:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report / horizontal column title</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-horizontal-column-title/m-p/418360#M67746</link>
      <description>&lt;P&gt;You can try LEFT/RIGHT on the DEFINE statement for alignment:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=p0wy1vqwvz43uhn1g77eb5xlvzqh.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=p0wy1vqwvz43uhn1g77eb5xlvzqh.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2017 03:43:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-horizontal-column-title/m-p/418360#M67746</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-12-05T03:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report / horizontal column title</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-horizontal-column-title/m-p/418392#M67748</link>
      <description>&lt;P&gt;You can change the order of the across and analysis variable in the COLUMN statement to achieve something similar. This allows you to have a common heading and suppress one heading using an empty label.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a look at the sample below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* 
 * default layout 
 */
proc report data=sashelp.cars;
  column type origin, invoice;
  define type / group;
  define origin / across;
  define invoice / analysis mean;
run;

/*
 * analysis before across var
 */
proc report data=sashelp.cars;
  column type invoice, origin;
  define type / group;
  define origin / across " ";
  define invoice / analysis mean "Invoice mean";
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Dec 2017 08:37:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-horizontal-column-title/m-p/418392#M67748</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2017-12-05T08:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report / horizontal column title</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-horizontal-column-title/m-p/418451#M67750</link>
      <description>&lt;P&gt;Thank you. One more question please. Anyone knows how to order the appearance of column? I'd like to have NEVER column as the first column in the output table. It's the reference group.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2017 12:08:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-horizontal-column-title/m-p/418451#M67750</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2017-12-05T12:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report / horizontal column title</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-horizontal-column-title/m-p/418462#M67751</link>
      <description>I suggest you start a new discussion with the appropriate title, makes it easier for everyone to find and answer to the question</description>
      <pubDate>Tue, 05 Dec 2017 12:50:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-horizontal-column-title/m-p/418462#M67751</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2017-12-05T12:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report / horizontal column title</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-horizontal-column-title/m-p/418545#M67754</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/132289"&gt;@Cruise&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Thank you. One more question please. Anyone knows how to order the appearance of column? I'd like to have NEVER column as the first column in the output table. It's the reference group.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;In addition to &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32"&gt;@BrunoMueller&lt;/a&gt;'s suggestion of a new thread, Provide example data in the form of a data step and the proc format code to create your age category format.&lt;/P&gt;
&lt;P&gt;The actual values of the variables and format options can interact in a number of ways to get things in a specific order and could actually require a proc sort before the report depending on the contents of those elements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With example data in the form of data step code then tested solutions may be provided. Without data you'll tend to get guesses that may or may not work with your actual data.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2017 17:17:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-horizontal-column-title/m-p/418545#M67754</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-12-05T17:17:54Z</dc:date>
    </item>
  </channel>
</rss>

