<?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 Keep data after the first row having non-missing in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Keep-data-after-the-first-row-having-non-missing/m-p/860361#M339886</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I want to keep all row after the first non-missing value row (including this first non-missing row)&lt;/P&gt;
&lt;P&gt;For the data below, I want to keep:&lt;/P&gt;
&lt;P&gt;3 1 2&lt;BR /&gt;4 1 .&lt;BR /&gt;5 1 3&lt;/P&gt;
&lt;P&gt;and&lt;/P&gt;
&lt;P&gt;2 2 2&lt;BR /&gt;3 2 .&lt;/P&gt;
&lt;P&gt;Can you please help?&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;HHC&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input date id value;
datalines;
1 1 .
2 1 .
3 1 2
4 1 .
5 1 3
1 2 .
2 2 2
3 2 .
;run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 23 Feb 2023 05:36:56 GMT</pubDate>
    <dc:creator>hhchenfx</dc:creator>
    <dc:date>2023-02-23T05:36:56Z</dc:date>
    <item>
      <title>Keep data after the first row having non-missing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Keep-data-after-the-first-row-having-non-missing/m-p/860361#M339886</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I want to keep all row after the first non-missing value row (including this first non-missing row)&lt;/P&gt;
&lt;P&gt;For the data below, I want to keep:&lt;/P&gt;
&lt;P&gt;3 1 2&lt;BR /&gt;4 1 .&lt;BR /&gt;5 1 3&lt;/P&gt;
&lt;P&gt;and&lt;/P&gt;
&lt;P&gt;2 2 2&lt;BR /&gt;3 2 .&lt;/P&gt;
&lt;P&gt;Can you please help?&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;HHC&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input date id value;
datalines;
1 1 .
2 1 .
3 1 2
4 1 .
5 1 3
1 2 .
2 2 2
3 2 .
;run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Feb 2023 05:36:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Keep-data-after-the-first-row-having-non-missing/m-p/860361#M339886</guid>
      <dc:creator>hhchenfx</dc:creator>
      <dc:date>2023-02-23T05:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: Keep data after the first row having non-missing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Keep-data-after-the-first-row-having-non-missing/m-p/860370#M339891</link>
      <description>&lt;P&gt;Use a RETAINed flag:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set have;
by id;
retain flag;
if first.id then flag = 0;
if value ne . then flag = 1; /* alternatively: flag = flag or (value ne .) */
if flag;
drop flag;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Feb 2023 06:57:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Keep-data-after-the-first-row-having-non-missing/m-p/860370#M339891</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-02-23T06:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Keep data after the first row having non-missing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Keep-data-after-the-first-row-having-non-missing/m-p/860521#M339943</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;HHC&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 18:36:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Keep-data-after-the-first-row-having-non-missing/m-p/860521#M339943</guid>
      <dc:creator>hhchenfx</dc:creator>
      <dc:date>2023-02-23T18:36:37Z</dc:date>
    </item>
  </channel>
</rss>

