<?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: In repeated measure how do i delete unwanted ids in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/In-repeated-measure-how-do-i-delete-unwanted-ids/m-p/265427#M57877</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/8409"&gt;@Babloo﻿&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This SUM function adds Boolean values, more precisely: their numeric equivalents 1 (for TRUE) and 0 (for FALSE). These arise from the equation &lt;FONT face="courier new,courier"&gt;status='A'&lt;/FONT&gt;. So, an observation with STATUS='A' contributes a 1 to the sum and other observations a 0. Thus,&amp;nbsp;&lt;FONT face="courier new,courier"&gt;sum(status='A')&lt;/FONT&gt; is the &lt;EM&gt;number of observations&lt;/EM&gt; with STATUS='A' in the BY group (due to the GROUP BY clause). If this number is equal to &lt;FONT face="courier new,courier"&gt;count(*)&lt;/FONT&gt;, the number of &lt;EM&gt;all&lt;/EM&gt; observations in the BY group, this means that all observations in the BY group must have STATUS='A'.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Apr 2016 14:12:43 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2016-04-21T14:12:43Z</dc:date>
    <item>
      <title>In repeated measure how do i delete unwanted ids</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/In-repeated-measure-how-do-i-delete-unwanted-ids/m-p/265219#M57858</link>
      <description>&lt;P&gt;here is the the structure of my data below:&lt;/P&gt;&lt;P&gt;i only need ID 2 since all patients are alive, therefore trying to delete id1:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Id &amp;nbsp;sex&amp;nbsp; status&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 &amp;nbsp; &amp;nbsp; A&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;A&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; D&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;A&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;A&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2016 21:19:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/In-repeated-measure-how-do-i-delete-unwanted-ids/m-p/265219#M57858</guid>
      <dc:creator>Douce</dc:creator>
      <dc:date>2016-04-20T21:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: In repeated measure how do i delete unwanted ids</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/In-repeated-measure-how-do-i-delete-unwanted-ids/m-p/265231#M57859</link>
      <description>&lt;P&gt;The simplest program might be this.&amp;nbsp; Assuming your data set is already sorted by ID:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;merge have (where=(status='D') in=delete_me) have;&lt;/P&gt;
&lt;P&gt;by ID;&lt;/P&gt;
&lt;P&gt;if delete_me then delete;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that this deletes IDs that contain a "D" only.&amp;nbsp; If you want to delete anything but "A" you would replace the WHERE condition:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;where=(status ne 'A')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;While simplest, this approach will unfortunately give you some undesirable messages in the log.&amp;nbsp; The messages won't hurt in this particular case, but could under other circumstances.&amp;nbsp; So a more complex, cleaner method would be:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;wanted='Y';;&lt;/P&gt;
&lt;P&gt;do until (last.id);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; set have;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; by ID;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; if status='D' then wanted='N';&lt;/P&gt;
&lt;P&gt;end;&lt;/P&gt;
&lt;P&gt;do until (last.id);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; set have;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; by ID;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; if wanted='Y' then output;&lt;/P&gt;
&lt;P&gt;end;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As before, you could conceivably change the conditions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if status ne 'A' then wanted='N';&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2016 21:01:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/In-repeated-measure-how-do-i-delete-unwanted-ids/m-p/265231#M57859</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-04-20T21:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: In repeated measure how do i delete unwanted ids</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/In-repeated-measure-how-do-i-delete-unwanted-ids/m-p/265233#M57861</link>
      <description>&lt;P&gt;I appreciate your prompt response.&lt;/P&gt;&lt;P&gt;I was using the first method and in fact if was only omiting obs where id='d'; when my goal is to remove all obs with that id; ie delete id 1 all together and ending with id 2 only.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2016 21:09:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/In-repeated-measure-how-do-i-delete-unwanted-ids/m-p/265233#M57861</guid>
      <dc:creator>Douce</dc:creator>
      <dc:date>2016-04-20T21:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: In repeated measure how do i delete unwanted ids</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/In-repeated-measure-how-do-i-delete-unwanted-ids/m-p/265234#M57862</link>
      <description>&lt;P&gt;&lt;FONT face="comic sans ms,sans-serif"&gt;I usually create a "discard" table before deleting from the data.&amp;nbsp; I'm assuming that 'A' is for Alive and 'D' is for Dead, but what is 'R'?&amp;nbsp; Anyway, the discard table below is populated by any rows where the subject is not 'A', so we can delete any ID from the original table that appears in the discard table.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;proc sql;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;create table discard as &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;select *&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;from&amp;nbsp;&amp;nbsp; tbl&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;where&amp;nbsp; status ^= 'A'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;delete from tbl&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;where&amp;nbsp; id in (select id from discard);&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2016 21:09:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/In-repeated-measure-how-do-i-delete-unwanted-ids/m-p/265234#M57862</guid>
      <dc:creator>Pamela_JSRCC</dc:creator>
      <dc:date>2016-04-20T21:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: In repeated measure how do i delete unwanted ids</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/In-repeated-measure-how-do-i-delete-unwanted-ids/m-p/265237#M57863</link>
      <description>&lt;P&gt;R is for retransplant &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; thank you for your suggestion.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2016 21:15:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/In-repeated-measure-how-do-i-delete-unwanted-ids/m-p/265237#M57863</guid>
      <dc:creator>Douce</dc:creator>
      <dc:date>2016-04-20T21:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: In repeated measure how do i delete unwanted ids</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/In-repeated-measure-how-do-i-delete-unwanted-ids/m-p/265284#M57869</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input Id  sex  status $;
cards;
1    2     A
1    2     A
1    2     A
1    2     D
2    1     A
2    1     A
2    1     A
;
run;

proc sql;
 create table want as
  select * from have
   group by id
    having sum(status='A')=count(*);
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Apr 2016 02:16:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/In-repeated-measure-how-do-i-delete-unwanted-ids/m-p/265284#M57869</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-04-21T02:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: In repeated measure how do i delete unwanted ids</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/In-repeated-measure-how-do-i-delete-unwanted-ids/m-p/265387#M57870</link>
      <description>&lt;P&gt;Could you please tell me how the following 'having' clause&amp;nbsp;will work in below proc sql? what variable it will sum?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
 create table want as
  select * from have
   group by id
    having sum(status='A')=count(*);
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Apr 2016 11:37:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/In-repeated-measure-how-do-i-delete-unwanted-ids/m-p/265387#M57870</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2016-04-21T11:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: In repeated measure how do i delete unwanted ids</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/In-repeated-measure-how-do-i-delete-unwanted-ids/m-p/265427#M57877</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/8409"&gt;@Babloo﻿&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This SUM function adds Boolean values, more precisely: their numeric equivalents 1 (for TRUE) and 0 (for FALSE). These arise from the equation &lt;FONT face="courier new,courier"&gt;status='A'&lt;/FONT&gt;. So, an observation with STATUS='A' contributes a 1 to the sum and other observations a 0. Thus,&amp;nbsp;&lt;FONT face="courier new,courier"&gt;sum(status='A')&lt;/FONT&gt; is the &lt;EM&gt;number of observations&lt;/EM&gt; with STATUS='A' in the BY group (due to the GROUP BY clause). If this number is equal to &lt;FONT face="courier new,courier"&gt;count(*)&lt;/FONT&gt;, the number of &lt;EM&gt;all&lt;/EM&gt; observations in the BY group, this means that all observations in the BY group must have STATUS='A'.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2016 14:12:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/In-repeated-measure-how-do-i-delete-unwanted-ids/m-p/265427#M57877</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-04-21T14:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: In repeated measure how do i delete unwanted ids</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/In-repeated-measure-how-do-i-delete-unwanted-ids/m-p/265429#M57878</link>
      <description>&lt;P&gt;&lt;FONT face="comic sans ms,sans-serif" size="3"&gt;It will sum the values from the expression "status='A'" by ID and compare that to the number of rows, so it will keep the ones where all the rows with that ID have status='A'.&amp;nbsp; This is nifty usage of the group by and having clause.&amp;nbsp; To see what is going on, like when debugging, you could "name" the flag and view&amp;nbsp;an "intermediate" table:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT color="#000080" size="2"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; tbl;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;input&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;FONT size="2"&gt; id sex status $;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;datalines&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;FONT size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;1 2 A&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;1 2 R&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;1 2 A&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;1 2 D&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;2 1 A&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;2 1 A&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;2 1 A&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;/* Create intermediate table to see the flag */&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT color="#000080" size="2"&gt;&lt;FONT color="#000080" size="2"&gt;&lt;FONT color="#000080" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" size="2"&gt;&lt;FONT color="#000080" size="2"&gt;&lt;FONT color="#000080" size="2"&gt;sql&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="2"&gt;&lt;FONT size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;create&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;table&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;FONT size="2"&gt; have &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;as&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;select&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;FONT size="2"&gt; *, status=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" size="2"&gt;&lt;FONT color="#800080" size="2"&gt;&lt;FONT color="#800080" size="2"&gt;'A'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;as&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;FONT size="2"&gt; alive_flag &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" size="2"&gt;&lt;FONT color="#800080" size="2"&gt;&lt;FONT color="#800080" size="2"&gt;'alive flag'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;from&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;FONT size="2"&gt; tbl&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;select&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;FONT size="2"&gt; * &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;from&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;FONT size="2"&gt; have&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;create&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;table&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;FONT size="2"&gt; want &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;as&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;select&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;FONT size="2"&gt; * &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;from&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;FONT size="2"&gt; have&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;group&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;by&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;FONT size="2"&gt; id&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;having&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;FONT size="2"&gt; sum(alive_flag)=count(*)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;select&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;FONT size="2"&gt; * &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;from&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;FONT size="2"&gt; want;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;/*&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&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; alive&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;id sex status&amp;nbsp; flag&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;-------------------&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;1&amp;nbsp;&amp;nbsp; 2 A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;1&amp;nbsp;&amp;nbsp; 2 R&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;1&amp;nbsp;&amp;nbsp; 2 A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;1&amp;nbsp;&amp;nbsp; 2 D&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;2&amp;nbsp;&amp;nbsp; 1 A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;2&amp;nbsp;&amp;nbsp; 1 A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;2&amp;nbsp;&amp;nbsp; 1 A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&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;alive&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;id sex status&amp;nbsp; flag&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;-------------------&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;2&amp;nbsp;&amp;nbsp; 1 A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;2&amp;nbsp;&amp;nbsp; 1 A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;2&amp;nbsp;&amp;nbsp; 1 A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;*/&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2016 14:18:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/In-repeated-measure-how-do-i-delete-unwanted-ids/m-p/265429#M57878</guid>
      <dc:creator>Pamela_JSRCC</dc:creator>
      <dc:date>2016-04-21T14:18:29Z</dc:date>
    </item>
  </channel>
</rss>

