<?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: Combining rows of data under new subheadings in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Combining-rows-of-data-under-new-subheadings/m-p/375041#M24398</link>
    <description>&lt;P&gt;What application are you referring to?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are programming this, it might (depending on what the report should contain) go like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sort data=have;&lt;/P&gt;
&lt;P&gt;by new_variable_with_food_category;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc print data=have;&lt;/P&gt;
&lt;P&gt;by new_variable_with_food_category;&lt;/P&gt;
&lt;P&gt;id new_variable_with_food_category;&lt;/P&gt;
&lt;P&gt;var food column2 column3 ... column50;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jul 2017 16:23:09 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2017-07-11T16:23:09Z</dc:date>
    <item>
      <title>Combining rows of data under new subheadings</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Combining-rows-of-data-under-new-subheadings/m-p/375008#M24395</link>
      <description>&lt;P&gt;Is there a way to combine/group similar&amp;nbsp;rows and place them under a new sub-category?&lt;/P&gt;&lt;P&gt;Ignore the bold/underline formatting, they're just to help you understand the column heading and subcategory headings.&lt;/P&gt;&lt;P&gt;Let's say the dataset looks like the following with column Food:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Food&lt;/U&gt;&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; Column 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Column 3 etc (continues till Column&amp;nbsp;50+)&lt;/P&gt;&lt;P&gt;Apple&lt;/P&gt;&lt;P&gt;Banana&lt;/P&gt;&lt;P&gt;Burger&lt;/P&gt;&lt;P&gt;Crepe&lt;/P&gt;&lt;P&gt;Strawberry&lt;/P&gt;&lt;P&gt;Fries&lt;/P&gt;&lt;P&gt;Pear&lt;/P&gt;&lt;P&gt;Ice Cream&lt;/P&gt;&lt;P&gt;(rows continue for 1000+)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I want the output to look like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Food&lt;/U&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; Column 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Column 3 etc (continues till Column 50+)&lt;/P&gt;&lt;P&gt;&lt;U&gt;Fruits&lt;/U&gt; (like a drop down menu)&lt;/P&gt;&lt;P&gt;Apple&lt;/P&gt;&lt;P&gt;Banana&lt;/P&gt;&lt;P&gt;Strawberry&lt;/P&gt;&lt;P&gt;Pear&lt;/P&gt;&lt;P&gt;(etc.)&lt;/P&gt;&lt;P&gt;&lt;U&gt;Unhealthy&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Burger&lt;/P&gt;&lt;P&gt;Fries&lt;/P&gt;&lt;P&gt;(etc.)&lt;/P&gt;&lt;P&gt;&lt;U&gt;Dessert&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Ice Cream&lt;/P&gt;&lt;P&gt;Crepe&lt;/P&gt;&lt;P&gt;(etc.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Don't really have a clue how to code this or where to begin. Maybe a Proc Report or Proc Sql?&lt;/P&gt;&lt;P&gt;Help is greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 15:21:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Combining-rows-of-data-under-new-subheadings/m-p/375008#M24395</guid>
      <dc:creator>jos283</dc:creator>
      <dc:date>2017-07-11T15:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Combining rows of data under new subheadings</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Combining-rows-of-data-under-new-subheadings/m-p/375022#M24396</link>
      <description>&lt;P&gt;You can generate a report that looks like what you want.&amp;nbsp; But you first have to add a column to the data.&amp;nbsp; A new variable would take on values like "Fruits", "Unhealthy", or "Dessert".&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 15:50:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Combining-rows-of-data-under-new-subheadings/m-p/375022#M24396</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-07-11T15:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Combining rows of data under new subheadings</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Combining-rows-of-data-under-new-subheadings/m-p/375026#M24397</link>
      <description>&lt;P&gt;How would I go about creating a report? Don't seem to see anywhere on the application&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 15:54:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Combining-rows-of-data-under-new-subheadings/m-p/375026#M24397</guid>
      <dc:creator>jos283</dc:creator>
      <dc:date>2017-07-11T15:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Combining rows of data under new subheadings</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Combining-rows-of-data-under-new-subheadings/m-p/375041#M24398</link>
      <description>&lt;P&gt;What application are you referring to?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are programming this, it might (depending on what the report should contain) go like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sort data=have;&lt;/P&gt;
&lt;P&gt;by new_variable_with_food_category;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc print data=have;&lt;/P&gt;
&lt;P&gt;by new_variable_with_food_category;&lt;/P&gt;
&lt;P&gt;id new_variable_with_food_category;&lt;/P&gt;
&lt;P&gt;var food column2 column3 ... column50;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 16:23:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Combining-rows-of-data-under-new-subheadings/m-p/375041#M24398</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-07-11T16:23:09Z</dc:date>
    </item>
  </channel>
</rss>

