<?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: how to unselect records in data step in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/how-to-unselect-records-in-data-step/m-p/546254#M8194</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input var $10.;
cards;
ABCrwe
DEFte
GHIgteg
dfserg
bfgdxbh
vxfgnb
vsdrgf
;

data want;
set have;
if var not in :('ABC','DEF','GHI');
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;You could use WHERE as well&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where var not in :('ABC','DEF','GHI');&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Mar 2019 18:26:41 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2019-03-26T18:26:41Z</dc:date>
    <item>
      <title>how to unselect records in data step</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-unselect-records-in-data-step/m-p/546253#M8193</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to un-select (delete) records in data step?&lt;/P&gt;&lt;P&gt;I have 100 records type in input and I&amp;nbsp;want to skip any data with name started with ABC or DEF or GHI.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks David&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2019 18:21:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-unselect-records-in-data-step/m-p/546253#M8193</guid>
      <dc:creator>yuwda01</dc:creator>
      <dc:date>2019-03-26T18:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to unselect records in data step</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-unselect-records-in-data-step/m-p/546254#M8194</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input var $10.;
cards;
ABCrwe
DEFte
GHIgteg
dfserg
bfgdxbh
vxfgnb
vsdrgf
;

data want;
set have;
if var not in :('ABC','DEF','GHI');
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;You could use WHERE as well&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where var not in :('ABC','DEF','GHI');&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2019 18:26:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-unselect-records-in-data-step/m-p/546254#M8194</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-03-26T18:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to unselect records in data step</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-unselect-records-in-data-step/m-p/546256#M8195</link>
      <description>Sorry, the input are done on the previous step and it created temp data.&lt;BR /&gt;&lt;BR /&gt;Now I need to use temp data to create another temp1 data without those data I want to skip.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks David&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 26 Mar 2019 18:27:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-unselect-records-in-data-step/m-p/546256#M8195</guid>
      <dc:creator>yuwda01</dc:creator>
      <dc:date>2019-03-26T18:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to unselect records in data step</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-unselect-records-in-data-step/m-p/546259#M8196</link>
      <description>&lt;P&gt;HAVE is the input sample I created for demonstration&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could also use boring substr function to achieve the same&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set have;
where substr(var,1,3) not in ('ABC','DEF','GHI');
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if substr(var,1,3) not in ('ABC','DEF','GHI');&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Mar 2019 18:30:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-unselect-records-in-data-step/m-p/546259#M8196</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-03-26T18:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to unselect records in data step</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-unselect-records-in-data-step/m-p/547630#M8406</link>
      <description>&lt;P&gt;yes, it works...&amp;nbsp;&amp;nbsp; Thanks for the advice.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 15:16:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-unselect-records-in-data-step/m-p/547630#M8406</guid>
      <dc:creator>yuwda01</dc:creator>
      <dc:date>2019-04-01T15:16:17Z</dc:date>
    </item>
  </channel>
</rss>

