<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: remove duplicate within a period and count in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/remove-duplicate-within-a-period-and-count/m-p/617643#M19099</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/202889"&gt;@dapenDaniel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks to me like you are using the Compustat SEGMENTs data.&amp;nbsp; That's a dataset in which a firm's product-segments (and geo-segments) for a given fiscal year are reported for three successive years.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a way to capture re-organization of a company's business model.&amp;nbsp; Say a company changes its product array in 1996. &amp;nbsp; Then you have the 1994 sales data reported twice (once in 1994, once in 1995) using the old product array, followed by once (in 1996) using the new array.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this indeed is your situation, just remember that if you use sales data for all the unique product identifiers assigned to a given fiscal year you will be double counting whenever a given year's data is reported using multiple product arrays.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That said, here's what I would do to get the number of new products introduced year-by-year:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
  input FirmID   Year      ProductID :$2. ;
datalines;
1001     1995      A1
1001     1995      B3
1001     1995      R9
1001     1995      V5
1001     1996      B2
1001     1996      Y8
1001     1997      A1
1001     1997      O6
1001     1997      U3
1001     1998      E4
1001     1998      W1
1001     1998      P3
1002     2003      D5
1002     2003      I8
1002     2003      V5
1002     2003      A1
1002     2004      G7
1002     2004      N6
1002     2005      I8
1002     2005      P2
1002     2005      M5
1002     2006      N6
1002     2006      K9
1002     2006      H4
1002     2007      V5
1002     2007      P2
1002     2007      R4
run;

data want (keep=firmid year pro_num);
  length _long_list $2000;
  do until (last.firmid);
    do pro_num=0 by 0 until (last.year);
      set have;
      by firmid year;
      if findw(_long_list,productid,' ')=0 then do;
        pro_num=pro_num+1;
        _long_list=catx(' ',_long_list,productid);
      end;
    end;
    output;
  end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;OL&gt;
&lt;LI&gt;Just make sure the variable _LONG_LIST is long enough to hold the largest conceivable list of products for any firm.&lt;/LI&gt;
&lt;LI&gt;Why do I use "do pro_num=0 by 0 unitl (last.year)".&amp;nbsp; Only becuase it is a single-statement replacing these two statements:
&lt;OL&gt;
&lt;LI&gt;pro_num=0;&lt;/LI&gt;
&lt;LI&gt;DO until (last.year);&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;This program assumes the non of your PRODUCTID values have an internal blank&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jan 2020 02:31:57 GMT</pubDate>
    <dc:creator>mkeintz</dc:creator>
    <dc:date>2020-01-16T02:31:57Z</dc:date>
    <item>
      <title>remove duplicate within a period and count</title>
      <link>https://communities.sas.com/t5/New-SAS-User/remove-duplicate-within-a-period-and-count/m-p/617617#M19092</link>
      <description>&lt;P&gt;Hi SAS Master,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset with three variables, including firmID, year, and ProductID. I would like to finish two tasks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. remove duplicate product within 3 years for each firm so that a product is only shown once within 3 years for a specific firm. (A product can be shown in several different firms. It can also be shown several times in a specific firm as long as the time lag is longer than 3 years. I just want to make sure that one product is only shown once within 3 years for a specific firm.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. count the number of products that each firm has for each year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;have&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;FirmID&lt;/TD&gt;&lt;TD&gt;Year&lt;/TD&gt;&lt;TD&gt;ProductID&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1001&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;1995&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;A1&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1001&lt;/TD&gt;&lt;TD&gt;1995&lt;/TD&gt;&lt;TD&gt;B3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1001&lt;/TD&gt;&lt;TD&gt;1995&lt;/TD&gt;&lt;TD&gt;R9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1001&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#3366FF"&gt;1995&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#3366FF"&gt;V5&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1001&lt;/TD&gt;&lt;TD&gt;1996&lt;/TD&gt;&lt;TD&gt;B2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1001&lt;/TD&gt;&lt;TD&gt;1996&lt;/TD&gt;&lt;TD&gt;Y8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1001&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;1997&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;A1&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1001&lt;/TD&gt;&lt;TD&gt;1997&lt;/TD&gt;&lt;TD&gt;O6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1001&lt;/TD&gt;&lt;TD&gt;1997&lt;/TD&gt;&lt;TD&gt;U3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1001&lt;/TD&gt;&lt;TD&gt;1998&lt;/TD&gt;&lt;TD&gt;E4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1001&lt;/TD&gt;&lt;TD&gt;1998&lt;/TD&gt;&lt;TD&gt;W1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1001&lt;/TD&gt;&lt;TD&gt;1998&lt;/TD&gt;&lt;TD&gt;P3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1002&lt;/TD&gt;&lt;TD&gt;2003&lt;/TD&gt;&lt;TD&gt;D5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1002&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#339966"&gt;2003&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#339966"&gt;I8&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1002&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#0000FF"&gt;2003&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#0000FF"&gt;V5&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1002&lt;/TD&gt;&lt;TD&gt;2003&lt;/TD&gt;&lt;TD&gt;A1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1002&lt;/TD&gt;&lt;TD&gt;2004&lt;/TD&gt;&lt;TD&gt;G7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1002&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF6600"&gt;2004&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF6600"&gt;N6&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1002&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#339966"&gt;2005&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#339966"&gt;I8&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1002&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF00FF"&gt;2005&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF00FF"&gt;P2&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1002&lt;/TD&gt;&lt;TD&gt;2005&lt;/TD&gt;&lt;TD&gt;M5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1002&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF6600"&gt;2006&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF6600"&gt;N6&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1002&lt;/TD&gt;&lt;TD&gt;2006&lt;/TD&gt;&lt;TD&gt;K9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1002&lt;/TD&gt;&lt;TD&gt;2006&lt;/TD&gt;&lt;TD&gt;H4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1002&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#0000FF"&gt;2007&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#0000FF"&gt;V5&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1002&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF00FF"&gt;2007&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF00FF"&gt;P2&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1002&lt;/TD&gt;&lt;TD&gt;2007&lt;/TD&gt;&lt;TD&gt;R4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;want&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;FirmID&lt;/TD&gt;&lt;TD&gt;Year&lt;/TD&gt;&lt;TD&gt;Pro_Num&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1001&lt;/TD&gt;&lt;TD&gt;1995&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1001&lt;/TD&gt;&lt;TD&gt;1996&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1001&lt;/TD&gt;&lt;TD&gt;1997&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1001&lt;/TD&gt;&lt;TD&gt;1998&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1002&lt;/TD&gt;&lt;TD&gt;2003&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1002&lt;/TD&gt;&lt;TD&gt;2004&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1002&lt;/TD&gt;&lt;TD&gt;2005&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1002&lt;/TD&gt;&lt;TD&gt;2006&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1002&lt;/TD&gt;&lt;TD&gt;2007&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A1 is shown in 1995 and 1997, so the number of products in 1997 is 2.&lt;/P&gt;&lt;P&gt;V5 is shown in both companies, so it is counted in firm 1001 in 1995 and firm 1002 in 2003.&lt;/P&gt;&lt;P&gt;I8 is shown in 2003 and 2005, so the number of products in 2005 is 2.&lt;/P&gt;&lt;P&gt;N6 is shown in 2004 and 2006, so the number of products in 2006 is 2.&lt;/P&gt;&lt;P&gt;V5 is shown in both in 2003 and 2007 and the time lag is more than 3 years. P2 is shown in both 2005 and 2007so it will be counted and the number of products in 2007 is 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What code do I need to use? Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 16:56:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/remove-duplicate-within-a-period-and-count/m-p/617617#M19092</guid>
      <dc:creator>dapenDaniel</dc:creator>
      <dc:date>2020-01-16T16:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: remove duplicate within a period and count</title>
      <link>https://communities.sas.com/t5/New-SAS-User/remove-duplicate-within-a-period-and-count/m-p/617622#M19095</link>
      <description>&lt;P&gt;Here are instructions on how to provide sample data as a data step:&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 22:28:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/remove-duplicate-within-a-period-and-count/m-p/617622#M19095</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-01-15T22:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: remove duplicate within a period and count</title>
      <link>https://communities.sas.com/t5/New-SAS-User/remove-duplicate-within-a-period-and-count/m-p/617631#M19097</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/202889"&gt;@dapenDaniel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an attempt to achieve this.&lt;/P&gt;
&lt;P&gt;So how should be counted the&amp;nbsp;&lt;SPAN&gt;V5 product. As the time lag is more than 3 years (2003 and 2007), there should be 2 products in 2007: V5 and R4? Did I miss something?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=have;
	by FirmID ProductID Year;
run;

data have1;
	set have;
	by FirmID ProductID Year;

	retain Year_ref;
	if first.ProductID then Year_ref = year;

	if first.ProductID or year &amp;gt;= (Year_ref + 3) then output;
run;

proc freq data=have1 noprint;
	table FirmID*Year / out=want (rename=(count = Pro_Num) drop=percent);
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Jan 2020 00:03:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/remove-duplicate-within-a-period-and-count/m-p/617631#M19097</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-01-16T00:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: remove duplicate within a period and count</title>
      <link>https://communities.sas.com/t5/New-SAS-User/remove-duplicate-within-a-period-and-count/m-p/617639#M19098</link>
      <description>What if you have a more than 5 year period though? Ie 1998 to 2020? Using Year_ref+3 won't account for that, will it?</description>
      <pubDate>Thu, 16 Jan 2020 01:38:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/remove-duplicate-within-a-period-and-count/m-p/617639#M19098</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-01-16T01:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: remove duplicate within a period and count</title>
      <link>https://communities.sas.com/t5/New-SAS-User/remove-duplicate-within-a-period-and-count/m-p/617643#M19099</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/202889"&gt;@dapenDaniel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks to me like you are using the Compustat SEGMENTs data.&amp;nbsp; That's a dataset in which a firm's product-segments (and geo-segments) for a given fiscal year are reported for three successive years.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a way to capture re-organization of a company's business model.&amp;nbsp; Say a company changes its product array in 1996. &amp;nbsp; Then you have the 1994 sales data reported twice (once in 1994, once in 1995) using the old product array, followed by once (in 1996) using the new array.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this indeed is your situation, just remember that if you use sales data for all the unique product identifiers assigned to a given fiscal year you will be double counting whenever a given year's data is reported using multiple product arrays.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That said, here's what I would do to get the number of new products introduced year-by-year:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
  input FirmID   Year      ProductID :$2. ;
datalines;
1001     1995      A1
1001     1995      B3
1001     1995      R9
1001     1995      V5
1001     1996      B2
1001     1996      Y8
1001     1997      A1
1001     1997      O6
1001     1997      U3
1001     1998      E4
1001     1998      W1
1001     1998      P3
1002     2003      D5
1002     2003      I8
1002     2003      V5
1002     2003      A1
1002     2004      G7
1002     2004      N6
1002     2005      I8
1002     2005      P2
1002     2005      M5
1002     2006      N6
1002     2006      K9
1002     2006      H4
1002     2007      V5
1002     2007      P2
1002     2007      R4
run;

data want (keep=firmid year pro_num);
  length _long_list $2000;
  do until (last.firmid);
    do pro_num=0 by 0 until (last.year);
      set have;
      by firmid year;
      if findw(_long_list,productid,' ')=0 then do;
        pro_num=pro_num+1;
        _long_list=catx(' ',_long_list,productid);
      end;
    end;
    output;
  end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;OL&gt;
&lt;LI&gt;Just make sure the variable _LONG_LIST is long enough to hold the largest conceivable list of products for any firm.&lt;/LI&gt;
&lt;LI&gt;Why do I use "do pro_num=0 by 0 unitl (last.year)".&amp;nbsp; Only becuase it is a single-statement replacing these two statements:
&lt;OL&gt;
&lt;LI&gt;pro_num=0;&lt;/LI&gt;
&lt;LI&gt;DO until (last.year);&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;This program assumes the non of your PRODUCTID values have an internal blank&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 02:31:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/remove-duplicate-within-a-period-and-count/m-p/617643#M19099</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2020-01-16T02:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: remove duplicate within a period and count</title>
      <link>https://communities.sas.com/t5/New-SAS-User/remove-duplicate-within-a-period-and-count/m-p/617653#M19104</link>
      <description>&lt;P&gt;Why is PRO_NUM for 1002/2007 only 1.&amp;nbsp; It has three values (V5, P2, and R4)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; R4 has never occurred before, and should be counted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; V5 was most recently listed in 2003, more than 3 year prior, so should be counted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; P2 was most recently listed in 2005, so is less than 4 years prior&lt;/P&gt;
&lt;P&gt;Shouldn't both R4 and V5 be counted?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 03:00:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/remove-duplicate-within-a-period-and-count/m-p/617653#M19104</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2020-01-16T03:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: remove duplicate within a period and count</title>
      <link>https://communities.sas.com/t5/New-SAS-User/remove-duplicate-within-a-period-and-count/m-p/617827#M19136</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/292097"&gt;@ed_sas_member&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are correct. I am sorry I put the wrong number for 2007. It should be 2. Thanks for remining me!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 16:56:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/remove-duplicate-within-a-period-and-count/m-p/617827#M19136</guid>
      <dc:creator>dapenDaniel</dc:creator>
      <dc:date>2020-01-16T16:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: remove duplicate within a period and count</title>
      <link>https://communities.sas.com/t5/New-SAS-User/remove-duplicate-within-a-period-and-count/m-p/617828#M19137</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31461"&gt;@mkeintz&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply. You are correct. The number for 2007 should be 2. Thanks for correcting me!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 16:58:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/remove-duplicate-within-a-period-and-count/m-p/617828#M19137</guid>
      <dc:creator>dapenDaniel</dc:creator>
      <dc:date>2020-01-16T16:58:35Z</dc:date>
    </item>
  </channel>
</rss>

