<?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: How to ungroup a dataset in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-ungroup-a-dataset/m-p/686254#M79565</link>
    <description>&lt;P&gt;The raw data is still in the dataset&amp;nbsp;data.analysis_rnv1 so you can get it there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can't use the data.analysis_rnv2 dataset to recover the data that was in the original dataset that was not kept in the query.&amp;nbsp; It just isn't kept in that dataset.&amp;nbsp; You could recreate the rows count without the missing data this way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data recovered(drop = i);
  set data.analysis_rnv2;
  do i = 1 to nurse_count;
    output;
  end;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Sep 2020 00:55:04 GMT</pubDate>
    <dc:creator>CurtisMackWSIPP</dc:creator>
    <dc:date>2020-09-24T00:55:04Z</dc:date>
    <item>
      <title>How to ungroup a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-ungroup-a-dataset/m-p/686250#M79564</link>
      <description>&lt;P&gt;How do I ungroup the created dataset to show raw data&lt;/P&gt;&lt;PRE&gt;PROC SQL;&lt;BR /&gt;CREATE TABLE data.analysis_rnv2 AS&lt;BR /&gt;SELECT PUBLICID, AI,&lt;BR /&gt;COUNT(*)&lt;BR /&gt;AS nurse_count&lt;BR /&gt;FROM data.analysis_rnv1&lt;BR /&gt;GROUP BY PUBLICID, AI&lt;BR /&gt;HAVING count(*) &amp;gt;= 3;&lt;BR /&gt;QUIT;&lt;BR /&gt;%put &amp;amp;sqlobs;&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Sep 2020 00:46:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-ungroup-a-dataset/m-p/686250#M79564</guid>
      <dc:creator>rhyatt2</dc:creator>
      <dc:date>2020-09-24T00:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to ungroup a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-ungroup-a-dataset/m-p/686254#M79565</link>
      <description>&lt;P&gt;The raw data is still in the dataset&amp;nbsp;data.analysis_rnv1 so you can get it there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can't use the data.analysis_rnv2 dataset to recover the data that was in the original dataset that was not kept in the query.&amp;nbsp; It just isn't kept in that dataset.&amp;nbsp; You could recreate the rows count without the missing data this way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data recovered(drop = i);
  set data.analysis_rnv2;
  do i = 1 to nurse_count;
    output;
  end;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 00:55:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-ungroup-a-dataset/m-p/686254#M79565</guid>
      <dc:creator>CurtisMackWSIPP</dc:creator>
      <dc:date>2020-09-24T00:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to ungroup a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-ungroup-a-dataset/m-p/686255#M79566</link>
      <description>Thanks Very Much.</description>
      <pubDate>Thu, 24 Sep 2020 00:56:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-ungroup-a-dataset/m-p/686255#M79566</guid>
      <dc:creator>rhyatt2</dc:creator>
      <dc:date>2020-09-24T00:56:58Z</dc:date>
    </item>
  </channel>
</rss>

