<?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 remove specific rows ina dataset in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-to-remove-specific-rows-ina-dataset/m-p/819719#M34769</link>
    <description>&lt;P&gt;Your code looks reasonable.&amp;nbsp; Explain how it did not work.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did it not run?&amp;nbsp; Show the log with the code and notes and errors.&lt;/P&gt;
&lt;P&gt;Did it run but not exclude everything you want it to exclude? Then show some example values of the variable TRACED_AD_1 that made it through to&amp;nbsp;NOA_Date_in_Add&amp;nbsp; that you wanted to eliminate.&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jun 2022 16:49:26 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2022-06-22T16:49:26Z</dc:date>
    <item>
      <title>How to remove specific rows ina dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-remove-specific-rows-ina-dataset/m-p/819710#M34767</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;
&lt;P&gt;I have created a dataset but have some dates in the address line 1. I want to remove those rows with address but not sure how to do it. I have figured out how to find all the rows with dates in the address line but not sure how to remove it from the dataset. I am not sure how to write a code to remove these rows from the dataset. Please help.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc sql;
create table NOA as
select *
from trace_nonlit
where Debt_Code not in (select debt_code from sasuser.trace_noa_flag);
quit;
/* Data pulls the dates in address */
proc sql;
create table NOA_Date_in_Add as
select *
from Strategy
where
      upcase('Traced_ad_1'n ) like '%-JAN %' 
or    upcase('Traced_ad_1'n ) like '%-FEB %'
or    upcase('Traced_ad_1'n ) like '%-MAR %'
or    upcase('Traced_ad_1'n ) like '%-APR %'
or    upcase('Traced_ad_1'n ) like '%-MAY %'
or    upcase('Traced_ad_1'n ) like '%-JUN %'
or    upcase('Traced_ad_1'n ) like '%-JUL %'
or    upcase('Traced_ad_1'n ) like '%-AUG %'
or    upcase('Traced_ad_1'n ) like '%-SEP %'
or    upcase('Traced_ad_1'n ) like '%-OCT %'
or    upcase('Traced_ad_1'n ) like '%-NOV %'
or    upcase('Traced_ad_1'n ) like '%-DEC %';
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Jun 2022 16:35:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-remove-specific-rows-ina-dataset/m-p/819710#M34767</guid>
      <dc:creator>Sandeep77</dc:creator>
      <dc:date>2022-06-22T16:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove specific rows ina dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-remove-specific-rows-ina-dataset/m-p/819719#M34769</link>
      <description>&lt;P&gt;Your code looks reasonable.&amp;nbsp; Explain how it did not work.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did it not run?&amp;nbsp; Show the log with the code and notes and errors.&lt;/P&gt;
&lt;P&gt;Did it run but not exclude everything you want it to exclude? Then show some example values of the variable TRACED_AD_1 that made it through to&amp;nbsp;NOA_Date_in_Add&amp;nbsp; that you wanted to eliminate.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 16:49:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-remove-specific-rows-ina-dataset/m-p/819719#M34769</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-06-22T16:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove specific rows in a dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-remove-specific-rows-ina-dataset/m-p/819727#M34770</link>
      <description>&lt;P&gt;Hi Tom,&lt;/P&gt;
&lt;P&gt;The code works fine. It shows all the address which have date in address line 1. But I want to write a code which removes these rows which includes date in address. Here is the examples that I get when I run the code which gives me details of any dates available in address line 1 but I want these to remove from the dataset.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;debt_code	Traced_ad_1
2543684	     15-Apr Clearburn Road
8463246	     10-Mar North Junction Street
2546434	     15-Apr Clearburn Road
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Jun 2022 17:03:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-remove-specific-rows-ina-dataset/m-p/819727#M34770</guid>
      <dc:creator>Sandeep77</dc:creator>
      <dc:date>2022-06-22T17:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove specific rows in a dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-remove-specific-rows-ina-dataset/m-p/819741#M34772</link>
      <description>&lt;P&gt;You asked for&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where
      upcase('Traced_ad_1'n ) like '%-JAN %' 
or    upcase('Traced_ad_1'n ) like '%-FEB %'
or    upcase('Traced_ad_1'n ) like '%-MAR %'
or    upcase('Traced_ad_1'n ) like '%-APR %'
or    upcase('Traced_ad_1'n ) like '%-MAY %'
or    upcase('Traced_ad_1'n ) like '%-JUN %'
or    upcase('Traced_ad_1'n ) like '%-JUL %'
or    upcase('Traced_ad_1'n ) like '%-AUG %'
or    upcase('Traced_ad_1'n ) like '%-SEP %'
or    upcase('Traced_ad_1'n ) like '%-OCT %'
or    upcase('Traced_ad_1'n ) like '%-NOV %'
or    upcase('Traced_ad_1'n ) like '%-DEC %'&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;but you want the opposite?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then how about this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where not (
      upcase('Traced_ad_1'n ) like '%-JAN %' 
or    upcase('Traced_ad_1'n ) like '%-FEB %'
or    upcase('Traced_ad_1'n ) like '%-MAR %'
or    upcase('Traced_ad_1'n ) like '%-APR %'
or    upcase('Traced_ad_1'n ) like '%-MAY %'
or    upcase('Traced_ad_1'n ) like '%-JUN %'
or    upcase('Traced_ad_1'n ) like '%-JUL %'
or    upcase('Traced_ad_1'n ) like '%-AUG %'
or    upcase('Traced_ad_1'n ) like '%-SEP %'
or    upcase('Traced_ad_1'n ) like '%-OCT %'
or    upcase('Traced_ad_1'n ) like '%-NOV %'
or    upcase('Traced_ad_1'n ) like '%-DEC %')
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Jun 2022 17:26:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-remove-specific-rows-ina-dataset/m-p/819741#M34772</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-06-22T17:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove specific rows in a dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-remove-specific-rows-ina-dataset/m-p/819749#M34775</link>
      <description>Thank you, that was exactly I was looking for. Much appreciated.</description>
      <pubDate>Wed, 22 Jun 2022 17:47:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-remove-specific-rows-ina-dataset/m-p/819749#M34775</guid>
      <dc:creator>Sandeep77</dc:creator>
      <dc:date>2022-06-22T17:47:54Z</dc:date>
    </item>
  </channel>
</rss>

