<?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: SAS Proc Report Subgroup in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Proc-Report-Subgroup/m-p/258405#M49756</link>
    <description>Hi: It looks like "Profit" isn't a variable, but is just a spanning header. What code have you tried already? What does your COLUMN statement look like right now with PROC REPORT. Have you tried to use a spanning header?&lt;BR /&gt;&lt;BR /&gt;Something like:&lt;BR /&gt;COLUMN Company ('Profit' profit_jan profit_feb profit_mar);&lt;BR /&gt;&lt;BR /&gt;(I know, they are not the variable names you originally showed, but I didn't want to run out of real estate.&lt;BR /&gt; &lt;BR /&gt;cynthia</description>
    <pubDate>Wed, 23 Mar 2016 03:59:32 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2016-03-23T03:59:32Z</dc:date>
    <item>
      <title>SAS Proc Report Subgroup</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Proc-Report-Subgroup/m-p/258401#M49755</link>
      <description>&lt;P&gt;Let say that I Have a simple table that have four variables (Company, Profit_January, Profit_February, Profit_March).&lt;/P&gt;&lt;P&gt;I would like to display my report to be like this:&lt;/P&gt;&lt;P&gt;&lt;A href="http://i.stack.imgur.com/QXiY8.png" rel="nofollow" target="_blank"&gt;&lt;IMG src="http://i.stack.imgur.com/QXiY8.png" border="0" alt="enter image description here" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In which, the Profit_January, Profit_February, and Profit_March is under subgroup Profit. Is it achievable doing Proc Report?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2016 03:07:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Proc-Report-Subgroup/m-p/258401#M49755</guid>
      <dc:creator>anthony28852</dc:creator>
      <dc:date>2016-03-23T03:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Proc Report Subgroup</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Proc-Report-Subgroup/m-p/258405#M49756</link>
      <description>Hi: It looks like "Profit" isn't a variable, but is just a spanning header. What code have you tried already? What does your COLUMN statement look like right now with PROC REPORT. Have you tried to use a spanning header?&lt;BR /&gt;&lt;BR /&gt;Something like:&lt;BR /&gt;COLUMN Company ('Profit' profit_jan profit_feb profit_mar);&lt;BR /&gt;&lt;BR /&gt;(I know, they are not the variable names you originally showed, but I didn't want to run out of real estate.&lt;BR /&gt; &lt;BR /&gt;cynthia</description>
      <pubDate>Wed, 23 Mar 2016 03:59:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Proc-Report-Subgroup/m-p/258405#M49756</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-03-23T03:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Proc Report Subgroup</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Proc-Report-Subgroup/m-p/258410#M49759</link>
      <description>&lt;P&gt;Hi Cynthia,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you! It works fine for me, one more question if you don't mind. I got my table from transposing another table. Hence the column name is not static, for example it can be profit_march, profit_april, profit_may instead of profit_january, profit_february, profit_may depending on the given&amp;nbsp;parameter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If that is the case how do I define the Column?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2016 05:40:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Proc-Report-Subgroup/m-p/258410#M49759</guid>
      <dc:creator>anthony28852</dc:creator>
      <dc:date>2016-03-23T05:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Proc Report Subgroup</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Proc-Report-Subgroup/m-p/258414#M49761</link>
      <description>&lt;P&gt;If you transposed from a data set that had month as a variable you might be better off to go back to that and use month with a label of "Profit" as a column header. Sort order would probably be best to have month as the number of month and use a custom format to display the month's name so order=internal.&lt;/P&gt;
&lt;P&gt;Or if you had actual date values use an appropriate format for a date.&lt;/P&gt;
&lt;P&gt;Then you don't have to worry about changing numbers of months and adjusting a list of variables.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2016 06:41:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Proc-Report-Subgroup/m-p/258414#M49761</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-03-23T06:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Proc Report Subgroup</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Proc-Report-Subgroup/m-p/258415#M49762</link>
      <description>Try variable list method .

&lt;PRE&gt;
COLUMN Company ('Profit' profit_:  );
&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 Mar 2016 07:00:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Proc-Report-Subgroup/m-p/258415#M49762</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-03-23T07:00:41Z</dc:date>
    </item>
  </channel>
</rss>

