<?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: drop observations with certain value in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/drop-observations-with-certain-value/m-p/391075#M93873</link>
    <description>Data data2;&lt;BR /&gt;Set data1;&lt;BR /&gt;If (month&amp;gt;t) then output data2;&lt;BR /&gt;Run;</description>
    <pubDate>Sat, 26 Aug 2017 15:13:13 GMT</pubDate>
    <dc:creator>Yavuz</dc:creator>
    <dc:date>2017-08-26T15:13:13Z</dc:date>
    <item>
      <title>drop observations with certain value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/drop-observations-with-certain-value/m-p/391044#M93865</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a data set data1 and want to drop observations where month larger than t, and save the new data as data2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How shall I do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Aug 2017 02:55:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/drop-observations-with-certain-value/m-p/391044#M93865</guid>
      <dc:creator>Nieves</dc:creator>
      <dc:date>2017-08-26T02:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: drop observations with certain value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/drop-observations-with-certain-value/m-p/391045#M93866</link>
      <description>&lt;P&gt;Please provide a sample data of the variables you have with values. This will help to get better responses. Without the data it is very difficult to suggest the code.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Aug 2017 03:17:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/drop-observations-with-certain-value/m-p/391045#M93866</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2017-08-26T03:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: drop observations with certain value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/drop-observations-with-certain-value/m-p/391053#M93871</link>
      <description>&lt;P&gt;Is January 2017 greater then December 2016 ?&lt;/P&gt;
&lt;P&gt;Are you comparing just the month or the date ?&lt;/P&gt;
&lt;P&gt;In what format is your date? Is Character? numeric? sas date?&lt;/P&gt;
&lt;P&gt;If it is a character date - is it ddmmyy mmddyy or any othe format ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code will change according to your answer.&lt;/P&gt;
&lt;P&gt;The best is to post example of your data.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Aug 2017 05:27:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/drop-observations-with-certain-value/m-p/391053#M93871</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-08-26T05:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: drop observations with certain value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/drop-observations-with-certain-value/m-p/391061#M93872</link>
      <description>&lt;P&gt;Suppose you are interested to drop &amp;nbsp;all observations of SASHELP.CLASS where AGE = 14 to get new data as myclass.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data myclass;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;set sashelp.class;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;where AGE ^= 14;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;If you interested to drop those whose SEX = 'M' then do:&lt;/P&gt;
&lt;P&gt;data myFemale;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; set sashelp.class;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;where Sex ^= 'M';&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Aug 2017 13:58:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/drop-observations-with-certain-value/m-p/391061#M93872</guid>
      <dc:creator>KachiM</dc:creator>
      <dc:date>2017-08-26T13:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: drop observations with certain value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/drop-observations-with-certain-value/m-p/391075#M93873</link>
      <description>Data data2;&lt;BR /&gt;Set data1;&lt;BR /&gt;If (month&amp;gt;t) then output data2;&lt;BR /&gt;Run;</description>
      <pubDate>Sat, 26 Aug 2017 15:13:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/drop-observations-with-certain-value/m-p/391075#M93873</guid>
      <dc:creator>Yavuz</dc:creator>
      <dc:date>2017-08-26T15:13:13Z</dc:date>
    </item>
  </channel>
</rss>

