<?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 by group with all missing value in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/by-group-with-all-missing-value/m-p/497924#M15505</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I want to find all the by group observations where one of the specific variable is missing on all.&lt;/P&gt;
&lt;P&gt;Can anyone help please. Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input Grade $1-7 ST_ID $9-11 Course $13-16 Score$17-18 date;
informat date ddmmyy8.;
format date date9.;
cards; 
Grade10 101 Eng	20 01/01/82
Grade11 105 Bio	25 25/11/99
Grade11 105 Math18 23/09/00
Grade11 105 Eng 15 11/12/01
Grade11 105 Math15 14/12/05
Grade11 102 Eng 15 13/07/02
Grade11 102 Bio 20 22/11/07
Grade11 102 Phy 16 19/04/88
Grade11 102 Math21 27/08/99
Grade11 104 Arts13 18/06/00
Grade11 104 Che 12 14/07/09
Grade11 104 Eng 18 09/03/08
Grade11 104 Bio 21 25/11/13
Grade12 103 Bio 10 13/12/99
Grade12 103 Math20 25/05/01
Grade12 103 Eng 16 04/04/06
Grade12 103     15 09/11/02
Grade12 103 Phy 17 16/03/15
Grade12 106     17 14/03/16
Grade12 106     19 11/05/01
Grade12 106     10 13/12/99
;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Expected Out put Table:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Grade&amp;nbsp; &amp;nbsp;St_ID Course&amp;nbsp; Score&amp;nbsp; Date&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Grade12 106&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 17&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 14/03/16&lt;BR /&gt;Grade12 106&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 19&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 11/05/01&lt;BR /&gt;Grade12 106&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 13/12/99&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Sep 2018 17:35:46 GMT</pubDate>
    <dc:creator>mlogan</dc:creator>
    <dc:date>2018-09-21T17:35:46Z</dc:date>
    <item>
      <title>by group with all missing value</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/by-group-with-all-missing-value/m-p/497924#M15505</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I want to find all the by group observations where one of the specific variable is missing on all.&lt;/P&gt;
&lt;P&gt;Can anyone help please. Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input Grade $1-7 ST_ID $9-11 Course $13-16 Score$17-18 date;
informat date ddmmyy8.;
format date date9.;
cards; 
Grade10 101 Eng	20 01/01/82
Grade11 105 Bio	25 25/11/99
Grade11 105 Math18 23/09/00
Grade11 105 Eng 15 11/12/01
Grade11 105 Math15 14/12/05
Grade11 102 Eng 15 13/07/02
Grade11 102 Bio 20 22/11/07
Grade11 102 Phy 16 19/04/88
Grade11 102 Math21 27/08/99
Grade11 104 Arts13 18/06/00
Grade11 104 Che 12 14/07/09
Grade11 104 Eng 18 09/03/08
Grade11 104 Bio 21 25/11/13
Grade12 103 Bio 10 13/12/99
Grade12 103 Math20 25/05/01
Grade12 103 Eng 16 04/04/06
Grade12 103     15 09/11/02
Grade12 103 Phy 17 16/03/15
Grade12 106     17 14/03/16
Grade12 106     19 11/05/01
Grade12 106     10 13/12/99
;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Expected Out put Table:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Grade&amp;nbsp; &amp;nbsp;St_ID Course&amp;nbsp; Score&amp;nbsp; Date&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Grade12 106&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 17&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 14/03/16&lt;BR /&gt;Grade12 106&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 19&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 11/05/01&lt;BR /&gt;Grade12 106&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 13/12/99&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 17:35:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/by-group-with-all-missing-value/m-p/497924#M15505</guid>
      <dc:creator>mlogan</dc:creator>
      <dc:date>2018-09-21T17:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: by group with all missing value</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/by-group-with-all-missing-value/m-p/497938#M15506</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input Grade $1-7 ST_ID $9-11 Course $13-16 Score$17-18 date;
informat date ddmmyy8.;
format date date9.;
cards; 
Grade10 101 Eng	20 01/01/82
Grade11 105 Bio	25 25/11/99
Grade11 105 Math18 23/09/00
Grade11 105 Eng 15 11/12/01
Grade11 105 Math15 14/12/05
Grade11 102 Eng 15 13/07/02
Grade11 102 Bio 20 22/11/07
Grade11 102 Phy 16 19/04/88
Grade11 102 Math21 27/08/99
Grade11 104 Arts13 18/06/00
Grade11 104 Che 12 14/07/09
Grade11 104 Eng 18 09/03/08
Grade11 104 Bio 21 25/11/13
Grade12 103 Bio 10 13/12/99
Grade12 103 Math20 25/05/01
Grade12 103 Eng 16 04/04/06
Grade12 103     15 09/11/02
Grade12 103 Phy 17 16/03/15
Grade12 106     17 14/03/16
Grade12 106     19 11/05/01
Grade12 106     10 13/12/99
;
RUN;

proc sql;
create table want as
select *
from have
group by Grade, ST_ID 
having sum(Course=' ')=count(*);
quit;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Sep 2018 18:02:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/by-group-with-all-missing-value/m-p/497938#M15506</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-09-21T18:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: by group with all missing value</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/by-group-with-all-missing-value/m-p/498054#M15510</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc sql;
create table want as
select *
from have
group by Grade, ST_ID 
having n(Course)=0;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 22 Sep 2018 10:48:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/by-group-with-all-missing-value/m-p/498054#M15510</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-09-22T10:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: by group with all missing value</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/by-group-with-all-missing-value/m-p/498393#M15519</link>
      <description>Thanks Novinorsin</description>
      <pubDate>Mon, 24 Sep 2018 13:39:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/by-group-with-all-missing-value/m-p/498393#M15519</guid>
      <dc:creator>mlogan</dc:creator>
      <dc:date>2018-09-24T13:39:02Z</dc:date>
    </item>
  </channel>
</rss>

