<?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: Sieving only the 0-and-1 consecutive couplets from dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Sieving-only-the-0-and-1-consecutive-couplets-from-dataset/m-p/820400#M323812</link>
    <description>&lt;P&gt;Wow, the code is exquisite!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you Tom, it works perfectly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Trying to understand your code, I remembered I learned from SAS community something like this:&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;if &amp;lt;condition&amp;gt; then do p=max(_n_-1,1) to min(_n_+1,nobs);&lt;/LI-CODE&gt;
&lt;P&gt;I undertand this is a step forward application from your code.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a nice weekend!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sincerely,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;KS -,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 25 Jun 2022 22:33:18 GMT</pubDate>
    <dc:creator>KS99</dc:creator>
    <dc:date>2022-06-25T22:33:18Z</dc:date>
    <item>
      <title>Sieving only the 0-and-1 consecutive couplets from dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sieving-only-the-0-and-1-consecutive-couplets-from-dataset/m-p/820390#M323805</link>
      <description>&lt;P&gt;Hi, SAS Community,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I should again reach out for help from you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My dataset looks like this:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data have;
  infile cards truncover;
  input CUSIP $ YEAR Couplets;
cards;
00036110	1990	0
00036110	1991	0
00036110	1992	1
00036110	2000	0
00036110	2001	1
00036110	2002	1
00036110	2010	0
00036110	2011	1
00036110	2012	0
00036110	2013	1
00037520	2009	0
00037520	2010	0
00037520	2011	1
00037520	2012	1
00037520	2014	0
00037520	2015	1
00086T10	2005	0
00086T10	2006	0
00086T10	2007	1
00095710	2014	0
00095710	2015	0
00095710	2016	1
;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I proc sorted my data by cusip and year.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I want to do is, sieve only the consecutive (by year) 0-1 couplets and weed out others from my dataset. In other words:&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="267"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="89"&gt;CUSIP&lt;/TD&gt;
&lt;TD width="89"&gt;YEAR&lt;/TD&gt;
&lt;TD width="89"&gt;Couplets&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="89"&gt;&lt;STRIKE&gt;00036110&lt;/STRIKE&gt;&lt;/TD&gt;
&lt;TD width="89"&gt;&lt;STRIKE&gt;1990&lt;/STRIKE&gt;&lt;/TD&gt;
&lt;TD width="89"&gt;&lt;STRIKE&gt;0&lt;/STRIKE&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="89"&gt;&lt;FONT color="#FF0000"&gt;00036110&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="89"&gt;&lt;FONT color="#FF0000"&gt;1991&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="89"&gt;&lt;FONT color="#FF0000"&gt;0&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="89"&gt;&lt;FONT color="#FF0000"&gt;00036110&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="89"&gt;&lt;FONT color="#FF0000"&gt;1992&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="89"&gt;&lt;FONT color="#FF0000"&gt;1&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="89"&gt;&lt;FONT color="#FF0000"&gt;00036110&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="89"&gt;&lt;FONT color="#FF0000"&gt;2000&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="89"&gt;&lt;FONT color="#FF0000"&gt;0&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="89"&gt;&lt;FONT color="#FF0000"&gt;00036110&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="89"&gt;&lt;FONT color="#FF0000"&gt;2001&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="89"&gt;&lt;FONT color="#FF0000"&gt;1&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="89"&gt;&lt;STRIKE&gt;00036110&lt;/STRIKE&gt;&lt;/TD&gt;
&lt;TD width="89"&gt;&lt;STRIKE&gt;2002&lt;/STRIKE&gt;&lt;/TD&gt;
&lt;TD width="89"&gt;&lt;STRIKE&gt;1&lt;/STRIKE&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="89"&gt;&lt;FONT color="#FF0000"&gt;00036110&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="89"&gt;&lt;FONT color="#FF0000"&gt;2010&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="89"&gt;&lt;FONT color="#FF0000"&gt;0&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="89"&gt;&lt;FONT color="#FF0000"&gt;00036110&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="89"&gt;&lt;FONT color="#FF0000"&gt;2011&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="89"&gt;&lt;FONT color="#FF0000"&gt;1&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="89"&gt;&lt;FONT color="#FF0000"&gt;00036110&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="89"&gt;&lt;FONT color="#FF0000"&gt;2012&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="89"&gt;&lt;FONT color="#FF0000"&gt;0&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="89"&gt;&lt;FONT color="#FF0000"&gt;00036110&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="89"&gt;&lt;FONT color="#FF0000"&gt;2013&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="89"&gt;&lt;FONT color="#FF0000"&gt;1&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="89"&gt;&lt;STRIKE&gt;00037520&lt;/STRIKE&gt;&lt;/TD&gt;
&lt;TD width="89"&gt;&lt;STRIKE&gt;2009&lt;/STRIKE&gt;&lt;/TD&gt;
&lt;TD width="89"&gt;&lt;STRIKE&gt;0&lt;/STRIKE&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="89"&gt;&lt;FONT color="#FF0000"&gt;00037520&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="89"&gt;&lt;FONT color="#FF0000"&gt;2010&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="89"&gt;&lt;FONT color="#FF0000"&gt;0&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="89"&gt;&lt;FONT color="#FF0000"&gt;00037520&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="89"&gt;&lt;FONT color="#FF0000"&gt;2011&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="89"&gt;&lt;FONT color="#FF0000"&gt;1&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="89"&gt;&lt;STRIKE&gt;00037520&lt;/STRIKE&gt;&lt;/TD&gt;
&lt;TD width="89"&gt;&lt;STRIKE&gt;2012&lt;/STRIKE&gt;&lt;/TD&gt;
&lt;TD width="89"&gt;&lt;STRIKE&gt;1&lt;/STRIKE&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="89"&gt;&lt;FONT color="#FF0000"&gt;00037520&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="89"&gt;&lt;FONT color="#FF0000"&gt;2014&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="89"&gt;&lt;FONT color="#FF0000"&gt;0&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="89"&gt;&lt;FONT color="#FF0000"&gt;00037520&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="89"&gt;&lt;FONT color="#FF0000"&gt;2015&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="89"&gt;&lt;FONT color="#FF0000"&gt;1&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD colspan="3"&gt;…..........&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Same CUSIP-consecutive year-consecutive 0-1.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This task looks simple, but for me as an eternal novice in SAS, it is quite a puzzle.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried lag, first.variable, last.variable, descending proc sort, but I cannot solve this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sincerely, I appreciate your help!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sincerely,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;KS -,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jun 2022 15:49:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sieving-only-the-0-and-1-consecutive-couplets-from-dataset/m-p/820390#M323805</guid>
      <dc:creator>KS99</dc:creator>
      <dc:date>2022-06-25T15:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Sieving only the 0-and-1 consecutive couplets from dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sieving-only-the-0-and-1-consecutive-couplets-from-dataset/m-p/820399#M323811</link>
      <description>&lt;P&gt;It is hard to look ahead.&amp;nbsp; Looking back is pretty easy using the LAG() function.&lt;/P&gt;
&lt;P&gt;So here is a way to do what you want that does not need to look ahead. (at least uses BY group processing ability to look ahead).&lt;/P&gt;
&lt;P&gt;Instead it looks for a one that follows a zero and then uses POINT= option on a separate SET statement to re-read the pair of observations and output them.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want ;
  set have;
  by CUSIP Couplets notsorted;
  lag_c = lag(Couplets);
  if first.Couplets and Couplets=1 and lag_c=0 and not first.CUSIP then do p=_n_-1,_n_;
    set have point=p;
    output;
  end;
  drop lag_c;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You might also want to check that you don't have gaps in the YEAR values.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jun 2022 21:03:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sieving-only-the-0-and-1-consecutive-couplets-from-dataset/m-p/820399#M323811</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-06-25T21:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sieving only the 0-and-1 consecutive couplets from dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sieving-only-the-0-and-1-consecutive-couplets-from-dataset/m-p/820400#M323812</link>
      <description>&lt;P&gt;Wow, the code is exquisite!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you Tom, it works perfectly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Trying to understand your code, I remembered I learned from SAS community something like this:&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;if &amp;lt;condition&amp;gt; then do p=max(_n_-1,1) to min(_n_+1,nobs);&lt;/LI-CODE&gt;
&lt;P&gt;I undertand this is a step forward application from your code.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a nice weekend!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sincerely,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;KS -,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jun 2022 22:33:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sieving-only-the-0-and-1-consecutive-couplets-from-dataset/m-p/820400#M323812</guid>
      <dc:creator>KS99</dc:creator>
      <dc:date>2022-06-25T22:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Sieving only the 0-and-1 consecutive couplets from dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sieving-only-the-0-and-1-consecutive-couplets-from-dataset/m-p/820419#M323819</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data have;
  infile cards truncover;
  input CUSIP $ YEAR Couplets;
cards;
00036110	1990	0
00036110	1991	0
00036110	1992	1
00036110	2000	0
00036110	2001	1
00036110	2002	1
00036110	2010	0
00036110	2011	1
00036110	2012	0
00036110	2013	1
00037520	2009	0
00037520	2010	0
00037520	2011	1
00037520	2012	1
00037520	2014	0
00037520	2015	1
00086T10	2005	0
00086T10	2006	0
00086T10	2007	1
00095710	2014	0
00095710	2015	0
00095710	2016	1
;
data want;
 merge have have(firstobs=2 keep= CUSIP  YEAR Couplets rename=(
 CUSIP=_CUSIP  YEAR=_YEAR Couplets=_Couplets ));
if (CUSIP=_CUSIP and YEAR=_YEAR-1 and Couplets=0 and _Couplets=1) or
   (CUSIP=lag(CUSIP) and YEAR=lag(YEAR)+1 and Couplets=1 and lag(Couplets)=0) ;
drop _:;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 26 Jun 2022 07:26:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sieving-only-the-0-and-1-consecutive-couplets-from-dataset/m-p/820419#M323819</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-06-26T07:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sieving only the 0-and-1 consecutive couplets from dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sieving-only-the-0-and-1-consecutive-couplets-from-dataset/m-p/820442#M323831</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/365070"&gt;@KS99&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Wow, the code is exquisite!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you Tom, it works perfectly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Trying to understand your code, I remembered I learned from SAS community something like this:&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;if &amp;lt;condition&amp;gt; then do p=max(_n_-1,1) to min(_n_+1,nobs);&lt;/LI-CODE&gt;
&lt;P&gt;I undertand this is a step forward application from your code.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a nice weekend!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sincerely,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;KS -,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;In this situation _N_ can never be less 2 nor greater than NOBS so the MAX() and MIN() are not need.&amp;nbsp; And since we only want two values of P there is no need to use an iterative range ( lowerbound TO upperbound BY increment) since we can just use two distinct values.&amp;nbsp; Remember you can have as many value (or ranges) as you want in the DO loop, just separate them by commas.&amp;nbsp; Example:&amp;nbsp; do time=1,2,3,5,10 to 50 by 10, 100 to 1000 by 100;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jun 2022 18:16:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sieving-only-the-0-and-1-consecutive-couplets-from-dataset/m-p/820442#M323831</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-06-26T18:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: Sieving only the 0-and-1 consecutive couplets from dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sieving-only-the-0-and-1-consecutive-couplets-from-dataset/m-p/820504#M323856</link>
      <description>&lt;P&gt;You can avoid explicit look ahead and the point= option.&amp;nbsp; &amp;nbsp;If the value of couplet is always a 0 or 1, and you want a pair of consecutive records in which the zero is followed by the one:&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want ;
  set have;
  by CUSIP Couplets notsorted;

  if last.couplets=1  and couplets=0 and last.cusip=0
  or first.couplets=1 and couplets=1 and first.cusip=0;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 11:38:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sieving-only-the-0-and-1-consecutive-couplets-from-dataset/m-p/820504#M323856</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2022-06-27T11:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sieving only the 0-and-1 consecutive couplets from dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sieving-only-the-0-and-1-consecutive-couplets-from-dataset/m-p/820777#M324015</link>
      <description>Thank you Tom, I gotcha.</description>
      <pubDate>Tue, 28 Jun 2022 19:25:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sieving-only-the-0-and-1-consecutive-couplets-from-dataset/m-p/820777#M324015</guid>
      <dc:creator>KS99</dc:creator>
      <dc:date>2022-06-28T19:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sieving only the 0-and-1 consecutive couplets from dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sieving-only-the-0-and-1-consecutive-couplets-from-dataset/m-p/820787#M324016</link>
      <description>&lt;P&gt;Thank you mkeintz,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I will copy your code, and use it in a similar context.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sincerely,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;KS -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 19:33:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sieving-only-the-0-and-1-consecutive-couplets-from-dataset/m-p/820787#M324016</guid>
      <dc:creator>KS99</dc:creator>
      <dc:date>2022-06-28T19:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sieving only the 0-and-1 consecutive couplets from dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sieving-only-the-0-and-1-consecutive-couplets-from-dataset/m-p/820790#M324017</link>
      <description>&lt;P&gt;Thank you Ksharp,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;long time no hear.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will copy your code. As a novice like me in SAS, "data B merge A&amp;nbsp; A" is a surprise. I think I can use them in a very efficient way.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sincerely,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;KS -,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 19:37:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sieving-only-the-0-and-1-consecutive-couplets-from-dataset/m-p/820790#M324017</guid>
      <dc:creator>KS99</dc:creator>
      <dc:date>2022-06-28T19:37:02Z</dc:date>
    </item>
  </channel>
</rss>

