<?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: need help to write query on email send with base sas in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/need-help-to-write-query-on-email-send-with-base-sas/m-p/209425#M38849</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What constitutes a duplicate? Completely identical observations, or just the same name within a rollno group, or just rollno?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Aug 2015 10:21:23 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2015-08-28T10:21:23Z</dc:date>
    <item>
      <title>need help to write query on email send with base sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/need-help-to-write-query-on-email-send-with-base-sas/m-p/209424#M38848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have &lt;STRONG&gt;class&lt;/STRONG&gt; dataset as below&lt;/P&gt;&lt;P&gt;Rollno name marks grade &lt;/P&gt;&lt;P&gt;A11&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ram&amp;nbsp;&amp;nbsp;&amp;nbsp; 50&amp;nbsp;&amp;nbsp;&amp;nbsp; C&lt;/P&gt;&lt;P&gt;A11&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ram&amp;nbsp;&amp;nbsp;&amp;nbsp; 50&amp;nbsp;&amp;nbsp;&amp;nbsp; C&lt;/P&gt;&lt;P&gt;A11&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hari&amp;nbsp;&amp;nbsp;&amp;nbsp; 60&amp;nbsp;&amp;nbsp;&amp;nbsp; B&lt;/P&gt;&lt;P&gt;C22&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Priya&amp;nbsp;&amp;nbsp;&amp;nbsp; 70&amp;nbsp;&amp;nbsp; B &lt;/P&gt;&lt;P&gt;C33&amp;nbsp;&amp;nbsp;&amp;nbsp; Ram&amp;nbsp;&amp;nbsp;&amp;nbsp; 60&amp;nbsp;&amp;nbsp; B&lt;/P&gt;&lt;P&gt;D44&amp;nbsp;&amp;nbsp;&amp;nbsp; Hari&amp;nbsp;&amp;nbsp;&amp;nbsp; 80&amp;nbsp;&amp;nbsp; A&lt;/P&gt;&lt;P&gt;D44&amp;nbsp;&amp;nbsp;&amp;nbsp; priya&amp;nbsp;&amp;nbsp; 90&amp;nbsp;&amp;nbsp; A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to write a query with below condition&lt;/P&gt;&lt;P&gt;“If &lt;STRONG&gt;class&lt;/STRONG&gt; dataset contain any duplicate with Rollno then send a email with duplicate data details otherwise do not sent any email if data is not duplicate in &lt;STRONG&gt;Class &lt;/STRONG&gt;dataset .”&lt;/P&gt;&lt;P&gt;Please help me write the query.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 10:09:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/need-help-to-write-query-on-email-send-with-base-sas/m-p/209424#M38848</guid>
      <dc:creator>PriyaSaha</dc:creator>
      <dc:date>2015-08-28T10:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: need help to write query on email send with base sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/need-help-to-write-query-on-email-send-with-base-sas/m-p/209425#M38849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What constitutes a duplicate? Completely identical observations, or just the same name within a rollno group, or just rollno?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 10:21:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/need-help-to-write-query-on-email-send-with-base-sas/m-p/209425#M38849</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2015-08-28T10:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: need help to write query on email send with base sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/need-help-to-write-query-on-email-send-with-base-sas/m-p/209426#M38850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In above CLASS data set, data should not be duplicate by Rollno .If it is duplicate then send a email with duplicate dataset to email id.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 11:37:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/need-help-to-write-query-on-email-send-with-base-sas/m-p/209426#M38850</guid>
      <dc:creator>PriyaSaha</dc:creator>
      <dc:date>2015-08-28T11:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: need help to write query on email send with base sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/need-help-to-write-query-on-email-send-with-base-sas/m-p/209427#M38851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To get those records, do this:&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;select * from class where rollno in (select rollno from have group by rollno having count(*) &amp;gt; 1);&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 12:00:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/need-help-to-write-query-on-email-send-with-base-sas/m-p/209427#M38851</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2015-08-28T12:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: need help to write query on email send with base sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/need-help-to-write-query-on-email-send-with-base-sas/m-p/209428#M38852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=have out=want dupout=dups nodupkey;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; by rollno;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will create two datasets - want with no duplicates, and dups with the duplicates.&amp;nbsp; You can then email or do whatever you want with the dups dataset.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 12:06:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/need-help-to-write-query-on-email-send-with-base-sas/m-p/209428#M38852</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-08-28T12:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: need help to write query on email send with base sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/need-help-to-write-query-on-email-send-with-base-sas/m-p/209429#M38853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm shocked KurtBremser, using SQL when base would do :smileyconfused:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 12:07:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/need-help-to-write-query-on-email-send-with-base-sas/m-p/209429#M38853</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-08-28T12:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: need help to write query on email send with base sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/need-help-to-write-query-on-email-send-with-base-sas/m-p/209430#M38854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did that mainly as a mental experiment, to see if I could get it right. Got to firmly embed the dupout= option in the back of my mind, though. Makes for a nice solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 12:20:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/need-help-to-write-query-on-email-send-with-base-sas/m-p/209430#M38854</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2015-08-28T12:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: need help to write query on email send with base sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/need-help-to-write-query-on-email-send-with-base-sas/m-p/209431#M38855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think your SQL solution is right on target if you want both the &lt;SPAN style="text-decoration: underline;"&gt;duplicate that would have been eliminated&lt;/SPAN&gt; along with the &lt;SPAN style="text-decoration: underline;"&gt;duplicate that would have been preserved&lt;/SPAN&gt; :smileycool:. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The proc sort solution picks winners and losers (based on sort position), and the first observation wins. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 23:15:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/need-help-to-write-query-on-email-send-with-base-sas/m-p/209431#M38855</guid>
      <dc:creator>hbi</dc:creator>
      <dc:date>2015-08-28T23:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: need help to write query on email send with base sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/need-help-to-write-query-on-email-send-with-base-sas/m-p/209432#M38856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need a query send email with a set of duplicate data to my email id if there is no duplicate no email.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Aug 2015 09:14:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/need-help-to-write-query-on-email-send-with-base-sas/m-p/209432#M38856</guid>
      <dc:creator>PriyaSaha</dc:creator>
      <dc:date>2015-08-29T09:14:41Z</dc:date>
    </item>
  </channel>
</rss>

