<?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: Scan to select certain rows in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Scan-to-select-certain-rows/m-p/550869#M152984</link>
    <description>&lt;P&gt;It is not clear what are the rules for selection.&lt;/P&gt;
&lt;P&gt;What do you mean by "...&lt;SPAN&gt;where the row moved from the flg = e to &lt;STRONG&gt;something else&lt;/STRONG&gt;" ?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;make your selection by WHERE clause:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
 set have;
      where flag="D" or ...;  /* combine your conditions */
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 14 Apr 2019 03:40:43 GMT</pubDate>
    <dc:creator>Shmuel</dc:creator>
    <dc:date>2019-04-14T03:40:43Z</dc:date>
    <item>
      <title>Scan to select certain rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scan-to-select-certain-rows/m-p/550863#M152979</link>
      <description>&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; have;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;input&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; id Cd $ flg $ DATE &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;DATE9.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;format&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; date &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;date9.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;datalines&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;11 chg b 13apr2019&lt;/P&gt;
&lt;P&gt;11 chg i 11apr2019&amp;nbsp; /*show*/&lt;/P&gt;
&lt;P&gt;11 chg e 6apr2019 /*show*/&lt;/P&gt;
&lt;P&gt;11 chg b 5apr2019&lt;/P&gt;
&lt;P&gt;11 add d 4apr2019&amp;nbsp; /*show*/&lt;/P&gt;
&lt;P&gt;11 chg y 1apr2019&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;run&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;I want to select the last instance of the (&amp;nbsp;flg = d or 11 add d 4apr2019)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;I want to select the first instance after the row moved from a flg = d to an e or 11 chg e 6apr2019)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;I want to then select the first instance where the row moved from the flg = e to something else.&amp;nbsp; So in this case I want to show 11 chg i 11apr2019&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Apr 2019 23:31:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scan-to-select-certain-rows/m-p/550863#M152979</guid>
      <dc:creator>Q1983</dc:creator>
      <dc:date>2019-04-13T23:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: Scan to select certain rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scan-to-select-certain-rows/m-p/550869#M152984</link>
      <description>&lt;P&gt;It is not clear what are the rules for selection.&lt;/P&gt;
&lt;P&gt;What do you mean by "...&lt;SPAN&gt;where the row moved from the flg = e to &lt;STRONG&gt;something else&lt;/STRONG&gt;" ?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;make your selection by WHERE clause:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
 set have;
      where flag="D" or ...;  /* combine your conditions */
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 14 Apr 2019 03:40:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scan-to-select-certain-rows/m-p/550869#M152984</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2019-04-14T03:40:43Z</dc:date>
    </item>
  </channel>
</rss>

