<?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: Three consecutive  records. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Three-consecutive-records/m-p/808489#M318810</link>
    <description>&lt;P&gt;The dataset is already sorted by usubjid and date, and there is no such sequence. Please explain (by posting an intended result) what you really want.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Apr 2022 04:50:37 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2022-04-19T04:50:37Z</dc:date>
    <item>
      <title>Three consecutive  records.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Three-consecutive-records/m-p/808488#M318809</link>
      <description>&lt;P&gt;how do we get three consecutive records with flag = 'Y after sorting dataset by USUBJID and Date?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data counter;&lt;BR /&gt;input usubjid $ flag $ date mmddyy10.;&lt;BR /&gt;format date mmddyy10.;&lt;BR /&gt;datalines;&lt;BR /&gt;A Y 1/01/2013&lt;BR /&gt;A Y 1/01/2013&lt;BR /&gt;A N 1/03/2013&lt;BR /&gt;A Y 1/04/2013&lt;BR /&gt;A Y 1/05/2013&lt;BR /&gt;A . 1/06/2013&lt;BR /&gt;A Y 1/07/2013&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 04:34:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Three-consecutive-records/m-p/808488#M318809</guid>
      <dc:creator>u52766097</dc:creator>
      <dc:date>2022-04-19T04:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: Three consecutive  records.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Three-consecutive-records/m-p/808489#M318810</link>
      <description>&lt;P&gt;The dataset is already sorted by usubjid and date, and there is no such sequence. Please explain (by posting an intended result) what you really want.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 04:50:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Three-consecutive-records/m-p/808489#M318810</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-04-19T04:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Three consecutive  records.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Three-consecutive-records/m-p/808672#M318868</link>
      <description>&lt;P&gt;if suppose ,I have another data then how will I get the three consecutive 'Y'? how many ways we can find the three consecutive 'Y'?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 19:54:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Three-consecutive-records/m-p/808672#M318868</guid>
      <dc:creator>u52766097</dc:creator>
      <dc:date>2022-04-19T19:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Three consecutive  records.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Three-consecutive-records/m-p/808683#M318870</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/364694"&gt;@u52766097&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;if suppose ,I have another data then how will I get the three consecutive 'Y'? how many ways we can find the three consecutive 'Y'?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Since your current example data contains &lt;STRONG&gt;no three consecutive 'Y'&lt;/STRONG&gt;, there is no way.&lt;/P&gt;
&lt;P&gt;Provide example data that actually has three consecutive 'Y' and what the result should be.&lt;/P&gt;
&lt;P&gt;And if there is another data (set?) you need to provide an example of that as well.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 20:33:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Three-consecutive-records/m-p/808683#M318870</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-04-19T20:33:46Z</dc:date>
    </item>
  </channel>
</rss>

