<?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 Capture duplicate records based on three different conditon in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Capture-duplicate-records-based-on-three-different-conditon/m-p/209399#M51889</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per below sample data, I need to capture all the study with only duplicate event. (e.g.&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Hemorge&lt;/SPAN&gt; for study CT001).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that I retrieve only those records which contain events with exactly same &lt;STRONG&gt;gender&lt;/STRONG&gt; &lt;SPAN style="text-decoration: underline;"&gt;or&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.33px;"&gt;exactly same &lt;STRONG&gt;risk_factor&lt;/STRONG&gt; &lt;SPAN style="text-decoration: underline;"&gt;or&amp;nbsp; &lt;/SPAN&gt;exactly same values for five variables &lt;STRONG&gt;(freq, SD, median, mode, covariance)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example for same gender with all duplicate events, data will be like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="21" style="border: 0px solid black;" width="64"&gt;STUDY&lt;/TD&gt;&lt;TD class="xl63" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="64"&gt;SEQ&lt;/TD&gt;&lt;TD class="xl63" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="71"&gt;EVENT&lt;/TD&gt;&lt;TD class="xl67" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="64"&gt;&lt;STRONG&gt;GENDER&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="64"&gt;RISK_FACTOR&lt;/TD&gt;&lt;TD class="xl63" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="64"&gt;FREQ&lt;/TD&gt;&lt;TD class="xl63" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="64"&gt;SD&lt;/TD&gt;&lt;TD class="xl63" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="65"&gt;MEDIAN&lt;/TD&gt;&lt;TD class="xl63" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="64"&gt;MODE&lt;/TD&gt;&lt;TD class="xl63" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="89"&gt;COVARIANCE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-width: medium 0px 0px; border-style: none solid solid; border-color: currentcolor black black;"&gt;CT003&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-width: medium 0px 0px medium; border-style: none solid solid none; border-color: currentcolor black black currentcolor;"&gt;4&lt;/TD&gt;&lt;TD class="xl65" style="border-width: medium 0px 0px medium; border-style: none solid solid none; border-color: currentcolor black black currentcolor;"&gt;Pregnancy&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border: 0px solid black;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-width: medium 0px 0px; border-style: none solid solid; border-color: currentcolor black black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-width: medium 0px 0px medium; border-style: none solid solid none; border-color: currentcolor black black currentcolor;"&gt;11&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-width: medium 0px 0px medium; border-style: none solid solid none; border-color: currentcolor black black currentcolor;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-width: medium 0px 0px medium; border-style: none solid solid none; border-color: currentcolor black black currentcolor;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-width: medium 0px 0px medium; border-style: none solid solid none; border-color: currentcolor black black currentcolor;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-width: medium 0px 0px medium; border-style: none solid solid none; border-color: currentcolor black black currentcolor;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21" style="border-width: medium 0px 0px; border-style: none solid solid; border-color: currentcolor black black;"&gt;CT003&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-width: medium 0px 0px medium; border-style: none solid solid none; border-color: currentcolor black black currentcolor;"&gt;5&lt;/TD&gt;&lt;TD class="xl65" style="border-width: medium 0px 0px medium; border-style: none solid solid none; border-color: currentcolor black black currentcolor;"&gt;Pregnancy&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-width: medium 0px 0px; border-style: none solid solid; border-color: currentcolor black black;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-width: medium 0px 0px; border-style: none solid solid; border-color: currentcolor black black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-width: medium 0px 0px medium; border-style: none solid solid none; border-color: currentcolor black black currentcolor;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-width: medium 0px 0px medium; border-style: none solid solid none; border-color: currentcolor black black currentcolor;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-width: medium 0px 0px medium; border-style: none solid solid none; border-color: currentcolor black black currentcolor;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-width: medium 0px 0px medium; border-style: none solid solid none; border-color: currentcolor black black currentcolor;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-width: medium 0px 0px medium; border-style: none solid solid none; border-color: currentcolor black black currentcolor;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For same risk_factor with duplicate events&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border: 0px solid black;" width="64"&gt;STUDY&lt;/TD&gt;&lt;TD class="xl65" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="64"&gt;SEQ&lt;/TD&gt;&lt;TD class="xl65" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="71"&gt;EVENT&lt;/TD&gt;&lt;TD class="xl66" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="64"&gt;GENDER&lt;/TD&gt;&lt;TD class="xl65" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="90"&gt;&lt;STRONG&gt;RISK_FACTOR&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="64"&gt;FREQ&lt;/TD&gt;&lt;TD class="xl65" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="64"&gt;SD&lt;/TD&gt;&lt;TD class="xl65" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="65"&gt;MEDIAN&lt;/TD&gt;&lt;TD class="xl65" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="64"&gt;MODE&lt;/TD&gt;&lt;TD class="xl65" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="89"&gt;COVARIANCE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0px solid black;"&gt;CT006&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD style="border: 0px solid black;"&gt;Oedema&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;0&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;0&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0px solid black;"&gt;CT006&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD style="border: 0px solid black;"&gt;Oedema&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0px solid black;"&gt;CT006&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;3&lt;/TD&gt;&lt;TD style="border: 0px solid black;"&gt;Oedema&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;0&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.33px;"&gt;For same &lt;SPAN style="font-size: 13.33px;"&gt;five variables &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.33px;"&gt;&lt;STRONG&gt;(freq, SD, median, mode, covariance)&lt;/STRONG&gt;&lt;/SPAN&gt; with exactly same value for duplicate events&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border: 0px solid black;" width="64"&gt;STUDY&lt;/TD&gt;&lt;TD class="xl65" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="64"&gt;SEQ&lt;/TD&gt;&lt;TD class="xl65" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="80"&gt;EVENT&lt;/TD&gt;&lt;TD class="xl66" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="64"&gt;GENDER&lt;/TD&gt;&lt;TD class="xl65" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="90"&gt;RISK_FACTOR&lt;/TD&gt;&lt;TD class="xl65" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="64"&gt;FREQ&lt;/TD&gt;&lt;TD class="xl65" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="64"&gt;SD&lt;/TD&gt;&lt;TD class="xl65" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="65"&gt;MEDIAN&lt;/TD&gt;&lt;TD class="xl65" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="64"&gt;MODE&lt;/TD&gt;&lt;TD class="xl65" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="89"&gt;COVARIANCE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0px solid black;"&gt;CT005&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD style="border: 0px solid black;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Skinlson&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0px solid black;"&gt;CT005&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD style="border: 0px solid black;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Skinlson&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0px solid black;"&gt;CT005&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;3&lt;/TD&gt;&lt;TD style="border: 0px solid black;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Skinlson&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;0&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data clinical;&lt;/P&gt;&lt;P&gt;input study $ seq event $ gender risk_factor freq&amp;nbsp; SD&amp;nbsp; median&amp;nbsp; mode&amp;nbsp; covariance;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;CT001 1 Hemorge 1 1 1 1 1 1 1&lt;/P&gt;&lt;P&gt;CT001 2 Hemorge 1 2 0 3 1 0 11&lt;/P&gt;&lt;P&gt;CT001 3 Hemorge 2 2 0 1 1 0 11&lt;/P&gt;&lt;P&gt;CT001 8 Hemoglobin 2 2 0 1 1 0 11&lt;/P&gt;&lt;P&gt;CT001 4 SBP 2 3 1 2 1 0 11&lt;/P&gt;&lt;P&gt;CT001 5 SBP 1 1 1 2 1 0 11&lt;/P&gt;&lt;P&gt;CT001 6 Hemorge 3 3 1 1 1 1 1&lt;/P&gt;&lt;P&gt;CT002 2 Gastro 0 1 1 1 1 1 1&lt;/P&gt;&lt;P&gt;CT002 1 Gastro 1 0 2 1 1 11 1&lt;/P&gt;&lt;P&gt;CT002 3 Gastro 1 0 3 1 1 0 1&lt;/P&gt;&lt;P&gt;CT003 1 Malignt 1 0 1 1 1 0 1&lt;/P&gt;&lt;P&gt;CT003 2 Malignt 0 0 1 1 1 0 1&lt;/P&gt;&lt;P&gt;CT003 3 Malignt 3 1 11 1 1 0 1&lt;/P&gt;&lt;P&gt;CT003 4 Pregnant 3 1 11 1 1 0 1&lt;/P&gt;&lt;P&gt;CT003 5 Pregnant 3 2 0 1 1 0 1&lt;/P&gt;&lt;P&gt;CT004 4 Pregnant 3 1 11 1 1 0 1&lt;/P&gt;&lt;P&gt;CT005 1 Skinlson&amp;nbsp; 1 1 0 0 0 0 0&lt;/P&gt;&lt;P&gt;CT005 2 Skinlson&amp;nbsp; 2 1 0 0 0 0 0&lt;/P&gt;&lt;P&gt;CT005 3 Skinlson&amp;nbsp; 1 0 0 0 0 0 0&lt;/P&gt;&lt;P&gt;CT006 1 Oedema 0 0 1 0 1 1 0&lt;/P&gt;&lt;P&gt;CT006 2 Oedema 1 0 1 1 1 1 0&lt;/P&gt;&lt;P&gt;CT006 4 STD 1 0 1 1 1 1 0&lt;/P&gt;&lt;P&gt;CT006 3 Oedema 1 0 0 1 1 1 0&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Output &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="640"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="34" width="64"&gt;STUDY&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px solid black;" width="64"&gt;SEQ&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px solid black;" width="64"&gt;EVENT&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px solid black;" width="64"&gt;GENDER&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px solid black;" width="64"&gt;RISK_FACTOR&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px solid black;" width="64"&gt;FREQ&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px solid black;" width="64"&gt;SD&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px solid black;" width="64"&gt;MEDIAN&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px solid black;" width="64"&gt;MODE&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px solid black;" width="64"&gt;COVARIANCE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="64"&gt;CT006&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;Oedema&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="64"&gt;CT006&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;2&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;Oedema&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="64"&gt;CT006&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;3&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;Oedema&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="64"&gt;CT003&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;4&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;Pregnant&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;11&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="64"&gt;CT003&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;5&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;Pregnant&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="64"&gt;CT005&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;Skinlson&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="64"&gt;CT005&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;2&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;Skinlson&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="64"&gt;CT005&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;3&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;Skinlson&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21" style="border-top: none;" width="64"&gt;CT001&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;4&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;SBP &lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;11&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="64"&gt;CT001&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;5&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;SBP &lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;11&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dataset value change by tiki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Jun 2015 16:29:03 GMT</pubDate>
    <dc:creator>Tanja</dc:creator>
    <dc:date>2015-06-18T16:29:03Z</dc:date>
    <item>
      <title>Capture duplicate records based on three different conditon</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Capture-duplicate-records-based-on-three-different-conditon/m-p/209399#M51889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per below sample data, I need to capture all the study with only duplicate event. (e.g.&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Hemorge&lt;/SPAN&gt; for study CT001).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that I retrieve only those records which contain events with exactly same &lt;STRONG&gt;gender&lt;/STRONG&gt; &lt;SPAN style="text-decoration: underline;"&gt;or&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.33px;"&gt;exactly same &lt;STRONG&gt;risk_factor&lt;/STRONG&gt; &lt;SPAN style="text-decoration: underline;"&gt;or&amp;nbsp; &lt;/SPAN&gt;exactly same values for five variables &lt;STRONG&gt;(freq, SD, median, mode, covariance)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example for same gender with all duplicate events, data will be like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="21" style="border: 0px solid black;" width="64"&gt;STUDY&lt;/TD&gt;&lt;TD class="xl63" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="64"&gt;SEQ&lt;/TD&gt;&lt;TD class="xl63" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="71"&gt;EVENT&lt;/TD&gt;&lt;TD class="xl67" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="64"&gt;&lt;STRONG&gt;GENDER&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="64"&gt;RISK_FACTOR&lt;/TD&gt;&lt;TD class="xl63" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="64"&gt;FREQ&lt;/TD&gt;&lt;TD class="xl63" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="64"&gt;SD&lt;/TD&gt;&lt;TD class="xl63" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="65"&gt;MEDIAN&lt;/TD&gt;&lt;TD class="xl63" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="64"&gt;MODE&lt;/TD&gt;&lt;TD class="xl63" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="89"&gt;COVARIANCE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-width: medium 0px 0px; border-style: none solid solid; border-color: currentcolor black black;"&gt;CT003&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-width: medium 0px 0px medium; border-style: none solid solid none; border-color: currentcolor black black currentcolor;"&gt;4&lt;/TD&gt;&lt;TD class="xl65" style="border-width: medium 0px 0px medium; border-style: none solid solid none; border-color: currentcolor black black currentcolor;"&gt;Pregnancy&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border: 0px solid black;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-width: medium 0px 0px; border-style: none solid solid; border-color: currentcolor black black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-width: medium 0px 0px medium; border-style: none solid solid none; border-color: currentcolor black black currentcolor;"&gt;11&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-width: medium 0px 0px medium; border-style: none solid solid none; border-color: currentcolor black black currentcolor;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-width: medium 0px 0px medium; border-style: none solid solid none; border-color: currentcolor black black currentcolor;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-width: medium 0px 0px medium; border-style: none solid solid none; border-color: currentcolor black black currentcolor;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-width: medium 0px 0px medium; border-style: none solid solid none; border-color: currentcolor black black currentcolor;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21" style="border-width: medium 0px 0px; border-style: none solid solid; border-color: currentcolor black black;"&gt;CT003&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-width: medium 0px 0px medium; border-style: none solid solid none; border-color: currentcolor black black currentcolor;"&gt;5&lt;/TD&gt;&lt;TD class="xl65" style="border-width: medium 0px 0px medium; border-style: none solid solid none; border-color: currentcolor black black currentcolor;"&gt;Pregnancy&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-width: medium 0px 0px; border-style: none solid solid; border-color: currentcolor black black;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-width: medium 0px 0px; border-style: none solid solid; border-color: currentcolor black black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-width: medium 0px 0px medium; border-style: none solid solid none; border-color: currentcolor black black currentcolor;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-width: medium 0px 0px medium; border-style: none solid solid none; border-color: currentcolor black black currentcolor;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-width: medium 0px 0px medium; border-style: none solid solid none; border-color: currentcolor black black currentcolor;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-width: medium 0px 0px medium; border-style: none solid solid none; border-color: currentcolor black black currentcolor;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-width: medium 0px 0px medium; border-style: none solid solid none; border-color: currentcolor black black currentcolor;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For same risk_factor with duplicate events&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border: 0px solid black;" width="64"&gt;STUDY&lt;/TD&gt;&lt;TD class="xl65" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="64"&gt;SEQ&lt;/TD&gt;&lt;TD class="xl65" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="71"&gt;EVENT&lt;/TD&gt;&lt;TD class="xl66" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="64"&gt;GENDER&lt;/TD&gt;&lt;TD class="xl65" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="90"&gt;&lt;STRONG&gt;RISK_FACTOR&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="64"&gt;FREQ&lt;/TD&gt;&lt;TD class="xl65" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="64"&gt;SD&lt;/TD&gt;&lt;TD class="xl65" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="65"&gt;MEDIAN&lt;/TD&gt;&lt;TD class="xl65" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="64"&gt;MODE&lt;/TD&gt;&lt;TD class="xl65" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="89"&gt;COVARIANCE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0px solid black;"&gt;CT006&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD style="border: 0px solid black;"&gt;Oedema&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;0&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;0&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0px solid black;"&gt;CT006&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD style="border: 0px solid black;"&gt;Oedema&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0px solid black;"&gt;CT006&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;3&lt;/TD&gt;&lt;TD style="border: 0px solid black;"&gt;Oedema&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;0&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.33px;"&gt;For same &lt;SPAN style="font-size: 13.33px;"&gt;five variables &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.33px;"&gt;&lt;STRONG&gt;(freq, SD, median, mode, covariance)&lt;/STRONG&gt;&lt;/SPAN&gt; with exactly same value for duplicate events&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border: 0px solid black;" width="64"&gt;STUDY&lt;/TD&gt;&lt;TD class="xl65" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="64"&gt;SEQ&lt;/TD&gt;&lt;TD class="xl65" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="80"&gt;EVENT&lt;/TD&gt;&lt;TD class="xl66" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="64"&gt;GENDER&lt;/TD&gt;&lt;TD class="xl65" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="90"&gt;RISK_FACTOR&lt;/TD&gt;&lt;TD class="xl65" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="64"&gt;FREQ&lt;/TD&gt;&lt;TD class="xl65" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="64"&gt;SD&lt;/TD&gt;&lt;TD class="xl65" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="65"&gt;MEDIAN&lt;/TD&gt;&lt;TD class="xl65" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="64"&gt;MODE&lt;/TD&gt;&lt;TD class="xl65" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentcolor;" width="89"&gt;COVARIANCE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0px solid black;"&gt;CT005&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD style="border: 0px solid black;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Skinlson&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0px solid black;"&gt;CT005&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD style="border: 0px solid black;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Skinlson&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0px solid black;"&gt;CT005&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;3&lt;/TD&gt;&lt;TD style="border: 0px solid black;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Skinlson&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;0&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data clinical;&lt;/P&gt;&lt;P&gt;input study $ seq event $ gender risk_factor freq&amp;nbsp; SD&amp;nbsp; median&amp;nbsp; mode&amp;nbsp; covariance;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;CT001 1 Hemorge 1 1 1 1 1 1 1&lt;/P&gt;&lt;P&gt;CT001 2 Hemorge 1 2 0 3 1 0 11&lt;/P&gt;&lt;P&gt;CT001 3 Hemorge 2 2 0 1 1 0 11&lt;/P&gt;&lt;P&gt;CT001 8 Hemoglobin 2 2 0 1 1 0 11&lt;/P&gt;&lt;P&gt;CT001 4 SBP 2 3 1 2 1 0 11&lt;/P&gt;&lt;P&gt;CT001 5 SBP 1 1 1 2 1 0 11&lt;/P&gt;&lt;P&gt;CT001 6 Hemorge 3 3 1 1 1 1 1&lt;/P&gt;&lt;P&gt;CT002 2 Gastro 0 1 1 1 1 1 1&lt;/P&gt;&lt;P&gt;CT002 1 Gastro 1 0 2 1 1 11 1&lt;/P&gt;&lt;P&gt;CT002 3 Gastro 1 0 3 1 1 0 1&lt;/P&gt;&lt;P&gt;CT003 1 Malignt 1 0 1 1 1 0 1&lt;/P&gt;&lt;P&gt;CT003 2 Malignt 0 0 1 1 1 0 1&lt;/P&gt;&lt;P&gt;CT003 3 Malignt 3 1 11 1 1 0 1&lt;/P&gt;&lt;P&gt;CT003 4 Pregnant 3 1 11 1 1 0 1&lt;/P&gt;&lt;P&gt;CT003 5 Pregnant 3 2 0 1 1 0 1&lt;/P&gt;&lt;P&gt;CT004 4 Pregnant 3 1 11 1 1 0 1&lt;/P&gt;&lt;P&gt;CT005 1 Skinlson&amp;nbsp; 1 1 0 0 0 0 0&lt;/P&gt;&lt;P&gt;CT005 2 Skinlson&amp;nbsp; 2 1 0 0 0 0 0&lt;/P&gt;&lt;P&gt;CT005 3 Skinlson&amp;nbsp; 1 0 0 0 0 0 0&lt;/P&gt;&lt;P&gt;CT006 1 Oedema 0 0 1 0 1 1 0&lt;/P&gt;&lt;P&gt;CT006 2 Oedema 1 0 1 1 1 1 0&lt;/P&gt;&lt;P&gt;CT006 4 STD 1 0 1 1 1 1 0&lt;/P&gt;&lt;P&gt;CT006 3 Oedema 1 0 0 1 1 1 0&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Output &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="640"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="34" width="64"&gt;STUDY&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px solid black;" width="64"&gt;SEQ&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px solid black;" width="64"&gt;EVENT&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px solid black;" width="64"&gt;GENDER&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px solid black;" width="64"&gt;RISK_FACTOR&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px solid black;" width="64"&gt;FREQ&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px solid black;" width="64"&gt;SD&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px solid black;" width="64"&gt;MEDIAN&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px solid black;" width="64"&gt;MODE&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px solid black;" width="64"&gt;COVARIANCE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="64"&gt;CT006&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;Oedema&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="64"&gt;CT006&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;2&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;Oedema&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="64"&gt;CT006&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;3&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;Oedema&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="64"&gt;CT003&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;4&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;Pregnant&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;11&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="64"&gt;CT003&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;5&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;Pregnant&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="64"&gt;CT005&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;Skinlson&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="64"&gt;CT005&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;2&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;Skinlson&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="64"&gt;CT005&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;3&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;Skinlson&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21" style="border-top: none;" width="64"&gt;CT001&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;4&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;SBP &lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;11&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="64"&gt;CT001&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;5&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;SBP &lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="64"&gt;11&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dataset value change by tiki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 16:29:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Capture-duplicate-records-based-on-three-different-conditon/m-p/209399#M51889</guid>
      <dc:creator>Tanja</dc:creator>
      <dc:date>2015-06-18T16:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Capture duplicate records based on three different conditon</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Capture-duplicate-records-based-on-three-different-conditon/m-p/209400#M51890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your output doesn't match your input. For example, your output shows two records with negative FREQ values but there aren't any in your input. Please fix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 18:27:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Capture-duplicate-records-based-on-three-different-conditon/m-p/209400#M51890</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2015-06-18T18:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Capture duplicate records based on three different conditon</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Capture-duplicate-records-based-on-three-different-conditon/m-p/209401#M51891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apology PG.&lt;/P&gt;&lt;P&gt;I made a mistake to copy dataset. I updated the table along with output. Please check once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that partition by clause is not supported by SAS. The below SQL approach is taken.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select study,seq,event,gender,risk_factor,freq,SD,median,mode,covariance&lt;/P&gt;&lt;P&gt;&amp;nbsp; from (select study,seq,event,gender,risk_factor,freq,SD,median,mode,covariance,&lt;/P&gt;&lt;P&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; count(distinct gender) over (partition by event) cnt1,&lt;/P&gt;&lt;P&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; count(distinct risk_factor) over (partition by event) cnt2,&lt;/P&gt;&lt;P&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; count(distinct freq||'#'||SD||'#'||median||'#'||mode||'#'||covariance) over (partition by event) cnt3,&lt;/P&gt;&lt;P&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; count(*) over(partition by event) cnt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from trial_study)&lt;/P&gt;&lt;P&gt;where cnt &amp;gt; 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; and 1 in (cnt1,cnt2,cnt3)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 03:37:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Capture-duplicate-records-based-on-three-different-conditon/m-p/209401#M51891</guid>
      <dc:creator>Tanja</dc:creator>
      <dc:date>2015-06-19T03:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Capture duplicate records based on three different conditon</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Capture-duplicate-records-based-on-three-different-conditon/m-p/209402#M51892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H3&gt;Code: Program&lt;/H3&gt;&lt;DIV class="sce-html-export" style="font-family: 'Courier New', Menlo, 'Lucida Console';"&gt;&lt;PRE class="sce-render" style="font-family: 'Courier New', Menlo, 'Lucida Console'; font-size: 16px;"&gt;&lt;SPAN class="sec-keyword" style="color: #000080; font-weight: bold;"&gt;data&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;clinical&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;input&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;study&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;$&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;seq&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;event&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;$&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;gender&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;risk_factor&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;freq&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;SD&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;median&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;mode&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;covariance&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;cards&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT001 1 Hemorge 1 1 1 1 1 1 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT001 2 Hemorge 1 2 0 3 1 0 11&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT001 3 Hemorge 2 2 0 1 1 0 11&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT001 8 Hemoglobin 2 2 0 1 1 0 11&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT001 4 SBP 2 3 1 2 1 0 11&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT001 5 SBP 1 1 1 2 1 0 11&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT001 6 Hemorge 3 3 1 1 1 1 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT002 2 Gastro 0 1 1 1 1 1 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT002 1 Gastro 1 0 2 1 1 11 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT002 3 Gastro 1 0 3 1 1 0 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT003 1 Malignt 1 0 1 1 1 0 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT003 2 Malignt 0 0 1 1 1 0 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT003 3 Malignt 3 1 11 1 1 0 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT003 4 Pregnant 3 1 11 1 1 0 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT003 5 Pregnant 3 2 0 1 1 0 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT004 4 Pregnant 3 1 11 1 1 0 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT005 1 Skinlson 1 1 0 0 0 0 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT005 2 Skinlson 2 1 0 0 0 0 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT005 3 Skinlson 1 0 0 0 0 0 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT006 1 Oedema 0 0 1 0 1 1 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT006 2 Oedema 1 0 1 1 1 1 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT006 4 STD 1 0 1 1 1 1 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT006 3 Oedema 1 0 0 1 1 1 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sec-keyword" style="color: #000080; font-weight: bold;"&gt;run&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sec-keyword" style="color: #000080; font-weight: bold;"&gt;proc&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="sec-keyword" style="color: #000080; font-weight: bold;"&gt;sql&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;create&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;table&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;want&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;as&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;select&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;*&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;from&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;clinical&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;group&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;by&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;study&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;event&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;having&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;count&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;*&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;gt&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="numeric" style="color: #008080; font-weight: bold;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;and&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;range&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;GENDER&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="numeric" style="color: #008080; font-weight: bold;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;or&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;range&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;RISK_FACTOR&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="numeric" style="color: #008080; font-weight: bold;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;or&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;range&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;FREQ&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="numeric" style="color: #008080; font-weight: bold;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;and&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;range&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;SD&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="numeric" style="color: #008080; font-weight: bold;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;and&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;range&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;MEDIAN&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="numeric" style="color: #008080; font-weight: bold;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;and&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;range&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;MODE&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="numeric" style="color: #008080; font-weight: bold;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;and&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;range&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;COVARIANCE&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="numeric" style="color: #008080; font-weight: bold;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sec-keyword" style="color: #000080; font-weight: bold;"&gt;quit&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;DIV&gt;&lt;SPAN class="sep" style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 14:16:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Capture-duplicate-records-based-on-three-different-conditon/m-p/209402#M51892</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-06-19T14:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Capture duplicate records based on three different conditon</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Capture-duplicate-records-based-on-three-different-conditon/m-p/209403#M51893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks keshan. But the value of variables are not fixed. It changes randomly. I can not enter zero or any fixed value. Is there any alternative approach to find sample results. Advance thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 14:23:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Capture-duplicate-records-based-on-three-different-conditon/m-p/209403#M51893</guid>
      <dc:creator>Tanja</dc:creator>
      <dc:date>2015-06-19T14:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Capture duplicate records based on three different conditon</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Capture-duplicate-records-based-on-three-different-conditon/m-p/209404#M51894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try my code on your sample data. If there were any problem , tell me .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 15:05:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Capture-duplicate-records-based-on-three-different-conditon/m-p/209404#M51894</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-06-19T15:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Capture duplicate records based on three different conditon</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Capture-duplicate-records-based-on-three-different-conditon/m-p/209405#M51895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why aren't CT001 seq 2 and 3 not in the result? They have the same risk_factor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 15:18:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Capture-duplicate-records-based-on-three-different-conditon/m-p/209405#M51895</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-06-19T15:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Capture duplicate records based on three different conditon</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Capture-duplicate-records-based-on-three-different-conditon/m-p/209406#M51896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look up what the RANGE function does. It is not looking at specific values or your data though it does assume they will be numeric.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 15:19:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Capture-duplicate-records-based-on-three-different-conditon/m-p/209406#M51896</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-06-19T15:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Capture duplicate records based on three different conditon</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Capture-duplicate-records-based-on-three-different-conditon/m-p/209407#M51897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Keshan for providing the logic. It is working fine.&lt;/P&gt;&lt;P&gt;Suppose the database contain value like below (other than zero). In that case, we can not fix the program with zero. We need to use some other approach.&lt;/P&gt;&lt;P&gt;In oracle, I resolve it through below logic using function. &lt;/P&gt;&lt;P&gt;select * from&lt;/P&gt;&lt;P&gt;(select study,seq,event,gender,risk_factor,freq,SD,median,mode,covariance,&lt;/P&gt;&lt;P&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; &lt;STRONG&gt;count(distinct freq||'#'||SD||'#'||median||'#'||mode||'#'||covariance) over (partition by event) cnt3,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&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; count(*) over(partition by event) cnt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from trial_study)&lt;/P&gt;&lt;P&gt;where cnt &amp;gt; 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; and cnt3=1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border: 0px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; width: 640px; background-color: rgb(255, 255, 255);"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="64"&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border: 0px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; width: 640px; background-color: #ffffff;" width="358"&gt;&lt;TBODY&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl63" height="34" style="font-style: inherit;" width="64"&gt;FREQ&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none; font-style: inherit;" width="64"&gt;SD&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none; font-style: inherit;" width="64"&gt;MEDIAN&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none; font-style: inherit;" width="64"&gt;MODE&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none; font-style: inherit;" width="102"&gt;COVARIANCE&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD align="right" class="xl64" height="20" style="border-top: none;"&gt;11&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;11&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;11&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;11&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;11&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="20" style="border-top: none;"&gt;11&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;11&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;11&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;11&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;11&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="20" style="border-top: none;"&gt;44&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;44&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;44&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;44&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;44&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="20" style="border-top: none;"&gt;44&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;44&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;44&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;44&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;44&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="20" style="border-top: none;"&gt;-2&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;-2&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;-2&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;-2&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;-2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="20" style="border-top: none;"&gt;-2&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;-2&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;-2&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;-2&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;-2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="64"&gt;&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="64"&gt;&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="64"&gt;&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="64"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dear ballarw,&lt;/P&gt;&lt;P&gt;You are correct. yes, those two record should be captured by the program. I keep only few records to display as output. Sorry for the confusion&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 15:55:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Capture-duplicate-records-based-on-three-different-conditon/m-p/209407#M51897</guid>
      <dc:creator>Tanja</dc:creator>
      <dc:date>2015-06-19T15:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Capture duplicate records based on three different conditon</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Capture-duplicate-records-based-on-three-different-conditon/m-p/209408#M51898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAS Standard SQL also could achieve your Oracle's Logic .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3 style="color: #353535; font-family: Lato, sans-serif; background-color: #f0f1f2;"&gt;Code: Program&lt;/H3&gt;&lt;PRE class="sce-render" style="font-family: 'Courier New', Menlo, 'Lucida Console'; font-size: 16px;"&gt;&lt;SPAN class="sec-keyword" style="color: #000080; font-weight: bold;"&gt;data&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;clinical&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;input&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;study&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;$&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;seq&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;event&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;$&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;gender&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;risk_factor&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;freq&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;SD&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;median&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;mode&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;covariance&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;cards&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT001 1 Hemorge 1 1 1 1 1 1 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT001 2 Hemorge 1 2 0 3 1 0 11&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT001 3 Hemorge 2 2 0 1 1 0 11&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT001 8 Hemoglobin 2 2 0 1 1 0 11&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT001 4 SBP 2 3 1 2 1 0 11&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT001 5 SBP 1 1 1 2 1 0 11&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT001 6 Hemorge 3 3 1 1 1 1 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT002 2 Gastro 0 1 1 1 1 1 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT002 1 Gastro 1 0 2 1 1 11 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT002 3 Gastro 1 0 3 1 1 0 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT003 1 Malignt 1 0 1 1 1 0 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT003 2 Malignt 0 0 1 1 1 0 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT003 3 Malignt 3 1 11 1 1 0 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT003 4 Pregnant 3 1 11 1 1 0 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT003 5 Pregnant 3 2 0 1 1 0 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT004 4 Pregnant 3 1 11 1 1 0 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT005 1 Skinlson 1 1 0 0 0 0 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT005 2 Skinlson 2 1 0 0 0 0 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT005 3 Skinlson 1 0 0 0 0 0 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT006 1 Oedema 0 0 1 0 1 1 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT006 2 Oedema 1 0 1 1 1 1 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT006 4 STD 1 0 1 1 1 1 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;CT006 3 Oedema 1 0 0 1 1 1 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sec-keyword" style="color: #000080; font-weight: bold;"&gt;run&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sec-keyword" style="color: #000080; font-weight: bold;"&gt;proc&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="sec-keyword" style="color: #000080; font-weight: bold;"&gt;sql&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;create&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;table&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;want&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;as&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;select&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;*&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;from&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;clinical&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;group&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;by&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;study&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;event&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;having&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;count&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;*&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;gt&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="numeric" style="color: #008080; font-weight: bold;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;and&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;count&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;GENDER&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="numeric" style="color: #008080; font-weight: bold;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;or&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;count&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;RISK_FACTOR&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="numeric" style="color: #008080; font-weight: bold;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;or&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;count&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;cats&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;FREQ&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;SD&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;MEDIAN&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;MODE&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;COVARIANCE&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="numeric" style="color: #008080; font-weight: bold;"&gt;1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sec-keyword" style="color: #000080; font-weight: bold;"&gt;quit&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xia Keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jun 2015 04:27:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Capture-duplicate-records-based-on-three-different-conditon/m-p/209408#M51898</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-06-20T04:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Capture duplicate records based on three different conditon</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Capture-duplicate-records-based-on-three-different-conditon/m-p/209409#M51899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Keshan for your great help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jun 2015 17:28:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Capture-duplicate-records-based-on-three-different-conditon/m-p/209409#M51899</guid>
      <dc:creator>Tanja</dc:creator>
      <dc:date>2015-06-20T17:28:47Z</dc:date>
    </item>
  </channel>
</rss>

