<?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 ungroup objects in a dataset in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ungroup-objects-in-a-dataset/m-p/800805#M40363</link>
    <description>Hello everyone. I wonder how can I ungroup objects in a dataset using an sql code?&lt;BR /&gt;I have a dataset containing several companies. I used "casewhen" to group companies in one batch. For companies that I needed to have data on individually I indicated their tax id numbers.&lt;BR /&gt;My question is: How can I form a table of data without indicating individual group numbers there?</description>
    <pubDate>Tue, 08 Mar 2022 09:00:29 GMT</pubDate>
    <dc:creator>FaridNasrAlDeen</dc:creator>
    <dc:date>2022-03-08T09:00:29Z</dc:date>
    <item>
      <title>ungroup objects in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ungroup-objects-in-a-dataset/m-p/800805#M40363</link>
      <description>Hello everyone. I wonder how can I ungroup objects in a dataset using an sql code?&lt;BR /&gt;I have a dataset containing several companies. I used "casewhen" to group companies in one batch. For companies that I needed to have data on individually I indicated their tax id numbers.&lt;BR /&gt;My question is: How can I form a table of data without indicating individual group numbers there?</description>
      <pubDate>Tue, 08 Mar 2022 09:00:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ungroup-objects-in-a-dataset/m-p/800805#M40363</guid>
      <dc:creator>FaridNasrAlDeen</dc:creator>
      <dc:date>2022-03-08T09:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: ungroup objects in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ungroup-objects-in-a-dataset/m-p/800813#M40364</link>
      <description>&lt;P&gt;I don't have any idea what "ungroup" could mean.&lt;/P&gt;
&lt;P&gt;Please post the data you have in usable form and the expected result.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 10:05:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ungroup-objects-in-a-dataset/m-p/800813#M40364</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-03-08T10:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: ungroup objects in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ungroup-objects-in-a-dataset/m-p/800823#M40365</link>
      <description>Unfortunately, I cannot post data.&lt;BR /&gt;&lt;BR /&gt;However I can describe the task from a different perspective.&lt;BR /&gt;&lt;BR /&gt;Let us say I have 5 companies with various commercial indicators related to&lt;BR /&gt;them.&lt;BR /&gt;&lt;BR /&gt;I created a variable "Major Companies" by introducing a code:&lt;BR /&gt;&lt;BR /&gt;%let Major_Companies = ('023478', '785466', '667743');&lt;BR /&gt;&lt;BR /&gt;*Now I use proc sql to create a table:*&lt;BR /&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;&lt;BR /&gt;create table month_report as&lt;BR /&gt;select&lt;BR /&gt;date,&lt;BR /&gt;type,&lt;BR /&gt;payment_form,&lt;BR /&gt;product_type,&lt;BR /&gt;CASE&lt;BR /&gt;WHEN CLIENT IN &amp;amp;Major_Companies THEN CLIENT&lt;BR /&gt;WHEN cash_disb = 'Y' THEN 'Cash_payments'&lt;BR /&gt;ELSE 'OTHERS'&lt;BR /&gt;end as 'client1'&lt;BR /&gt;&lt;BR /&gt;The code is slightly larger, but what I want is to include all customers in&lt;BR /&gt;the table without grouping them into "Others" pack. Can that be done by&lt;BR /&gt;deleting that string of code or should I specify ALL in the parenthesis&lt;BR /&gt;when I introduce the Major_Companies variable?&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Mar 2022 10:23:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ungroup-objects-in-a-dataset/m-p/800823#M40365</guid>
      <dc:creator>FaridNasrAlDeen</dc:creator>
      <dc:date>2022-03-08T10:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: ungroup objects in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ungroup-objects-in-a-dataset/m-p/800882#M40368</link>
      <description>Make some fake data in Excel that mimics your actual data. &lt;BR /&gt;&lt;BR /&gt;Seems like you could just group on the CLIENT field instead of CLIENT1 field instead to get what you want?&lt;BR /&gt;Depends what you want to do with that second condition:&lt;BR /&gt;WHEN cash_disb = 'Y' THEN 'Cash_payments'</description>
      <pubDate>Tue, 08 Mar 2022 16:13:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ungroup-objects-in-a-dataset/m-p/800882#M40368</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-03-08T16:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: ungroup objects in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ungroup-objects-in-a-dataset/m-p/801735#M40400</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/283127"&gt;@FaridNasrAlDeen&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;From the code you have shown , you are using case statement to create a new variable client1.&lt;BR /&gt;The rest of the data is intact.&lt;BR /&gt;Just ignore this variable.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 20:14:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ungroup-objects-in-a-dataset/m-p/801735#M40400</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2022-03-11T20:14:53Z</dc:date>
    </item>
  </channel>
</rss>

