<?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: DATA Selection in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/DATA-Selection/m-p/703451#M215540</link>
    <description>&lt;P&gt;Double DO loop&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
do until (last.ssn);
  set have;
  by ssn notsorted;
  if plan = "9222" then has_9222 = 1;
end;
do until (last.ssn);
  set have;
  by ssn notsorted;
  if plan = "9229" and has_9222 then output;
end;
drop has_9222;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Untested, for lack of &lt;EM&gt;usable&lt;/EM&gt; data.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Dec 2020 18:02:32 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-12-03T18:02:32Z</dc:date>
    <item>
      <title>DATA Selection</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DATA-Selection/m-p/703449#M215538</link>
      <description>&lt;P&gt;Dataset&lt;BR /&gt;ssn Amt PLAN Mod&lt;BR /&gt;2345 233 9229 26&lt;BR /&gt;2345 244 9222 12&lt;BR /&gt;1234 222 9229 26&lt;/P&gt;&lt;P&gt;Expected result&lt;BR /&gt;ssn Amt PLAN Mod&lt;BR /&gt;2345 233 9229 26&lt;BR /&gt;1234 222 9229 26&lt;/P&gt;&lt;P&gt;I need to keep only one row for this ppt if it has row for both the plans (9229,9222) . I need to just poulate row for plan 9229. How can this be done with out dropping any variable.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 17:55:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DATA-Selection/m-p/703449#M215538</guid>
      <dc:creator>msharma1788</dc:creator>
      <dc:date>2020-12-03T17:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: DATA Selection</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DATA-Selection/m-p/703451#M215540</link>
      <description>&lt;P&gt;Double DO loop&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
do until (last.ssn);
  set have;
  by ssn notsorted;
  if plan = "9222" then has_9222 = 1;
end;
do until (last.ssn);
  set have;
  by ssn notsorted;
  if plan = "9229" and has_9222 then output;
end;
drop has_9222;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Untested, for lack of &lt;EM&gt;usable&lt;/EM&gt; data.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 18:02:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DATA-Selection/m-p/703451#M215540</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-12-03T18:02:32Z</dc:date>
    </item>
  </channel>
</rss>

