<?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: Missing Variables within By Group in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Missing-Variables-within-By-Group/m-p/276039#M55274</link>
    <description>&lt;P&gt;proc sql;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; create table want as&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; select * from table1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; except&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; select * from table2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there are other variables needed you need to do some merging bak from the result to get them and have to replace the * with Student_Id, Course&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jun 2016 17:40:10 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2016-06-08T17:40:10Z</dc:date>
    <item>
      <title>Missing Variables within By Group</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-Variables-within-By-Group/m-p/276034#M55272</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I am trying to retrieve the missing variable of Table2 from Table1 (within by group). Can someone help with the code please.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have the following two datasets:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Table1:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Student_ID &amp;nbsp; &amp;nbsp; Course&lt;/P&gt;
&lt;P&gt;101 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; English&lt;/P&gt;
&lt;P&gt;101 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Biology&lt;/P&gt;
&lt;P&gt;102 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Chemistry&lt;/P&gt;
&lt;P&gt;103 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;English&lt;/P&gt;
&lt;P&gt;103 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Physics&lt;/P&gt;
&lt;P&gt;103 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Accounting&lt;/P&gt;
&lt;P&gt;104 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Biology&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;104 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Chemistry&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Table2:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Student_ID&lt;/SPAN&gt; &amp;nbsp;Course&lt;/P&gt;
&lt;P&gt;101 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;English&lt;/P&gt;
&lt;P&gt;102 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Chemistry&lt;/P&gt;
&lt;P&gt;103 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; English&lt;/P&gt;
&lt;P&gt;103 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Accounting&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;104 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Chemistry&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Expected Output:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Student_ID &amp;nbsp; &amp;nbsp; Course&lt;/P&gt;
&lt;P&gt;101 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Biology&lt;/P&gt;
&lt;P&gt;103 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Physics&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;104 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Biology&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 17:20:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-Variables-within-By-Group/m-p/276034#M55272</guid>
      <dc:creator>mlogan</dc:creator>
      <dc:date>2016-06-08T17:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Variables within By Group</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-Variables-within-By-Group/m-p/276038#M55273</link>
      <description>&lt;P&gt;proc sql;&lt;BR /&gt;select a.*&lt;BR /&gt;from table1 A&lt;BR /&gt;left join table2 B on b.student_id = a.student_id and &lt;BR /&gt; b.course = a.course&lt;BR /&gt;where missing (b.student_id);&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 17:38:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-Variables-within-By-Group/m-p/276038#M55273</guid>
      <dc:creator>Pamela_JSRCC</dc:creator>
      <dc:date>2016-06-08T17:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Variables within By Group</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-Variables-within-By-Group/m-p/276039#M55274</link>
      <description>&lt;P&gt;proc sql;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; create table want as&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; select * from table1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; except&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; select * from table2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there are other variables needed you need to do some merging bak from the result to get them and have to replace the * with Student_Id, Course&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 17:40:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-Variables-within-By-Group/m-p/276039#M55274</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-06-08T17:40:10Z</dc:date>
    </item>
  </channel>
</rss>

