<?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: CONDITIONALLY DELETING FIRST OBSERVATION in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/CONDITIONALLY-DELETING-FIRST-OBSERVATION/m-p/524770#M4825</link>
    <description>&lt;P&gt;Sounds like you want FIRST.DAY instead of FIRST.RETURN.&amp;nbsp; Since you have mulitple values or RETURN for each value of DAY the flag FIRST.RETURN could will be true multiple times on a Sunday. But FIRST.DAY will be true only for the first record for that day.&lt;/P&gt;</description>
    <pubDate>Sat, 05 Jan 2019 00:34:10 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2019-01-05T00:34:10Z</dc:date>
    <item>
      <title>CONDITIONALLY DELETING FIRST OBSERVATION</title>
      <link>https://communities.sas.com/t5/New-SAS-User/CONDITIONALLY-DELETING-FIRST-OBSERVATION/m-p/524767#M4823</link>
      <description>&lt;P&gt;For this I have already looked at the posts in the community, but they seemed to not serve my purpose. I tried the following code, which did not work.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data zzz; &lt;BR /&gt;set yyy; &lt;BR /&gt;by return notsorted; &lt;BR /&gt;if Day= "Sun" and first.return then delete; &lt;BR /&gt;run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I have the following table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Date&lt;/U&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;U&gt;Time&lt;/U&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;U&gt;Day&lt;/U&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;U&gt;Return&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;03/05 &amp;nbsp;&amp;nbsp; 12:20 &amp;nbsp; &amp;nbsp; &amp;nbsp; Sun &amp;nbsp; &amp;nbsp; 2.45&lt;/P&gt;&lt;P&gt;03/05 &amp;nbsp;&amp;nbsp; 12:30 &amp;nbsp; &amp;nbsp; &amp;nbsp; Sun &amp;nbsp; &amp;nbsp; 3.23&lt;/P&gt;&lt;P&gt;03/05 &amp;nbsp;&amp;nbsp; 12:35 &amp;nbsp; &amp;nbsp; &amp;nbsp; Sun &amp;nbsp; &amp;nbsp; 2.03&lt;/P&gt;&lt;P&gt;03/05 &amp;nbsp;&amp;nbsp; 12:40 &amp;nbsp; &amp;nbsp; &amp;nbsp; Sun &amp;nbsp; &amp;nbsp; 2.55&lt;/P&gt;&lt;P&gt;03/05 &amp;nbsp;&amp;nbsp; 12:45 &amp;nbsp; &amp;nbsp; &amp;nbsp; Sun &amp;nbsp; &amp;nbsp; 3.11&lt;/P&gt;&lt;P&gt;03/05 &amp;nbsp;&amp;nbsp; 12:50 &amp;nbsp; &amp;nbsp; &amp;nbsp; Sun &amp;nbsp; &amp;nbsp; 2.67&lt;/P&gt;&lt;P&gt;03/06 &amp;nbsp;&amp;nbsp; 12:25 &amp;nbsp; &amp;nbsp; &amp;nbsp; Mon &amp;nbsp; &amp;nbsp; 2.99&lt;/P&gt;&lt;P&gt;03/06 &amp;nbsp;&amp;nbsp; 12:30 &amp;nbsp; &amp;nbsp; &amp;nbsp; Mon &amp;nbsp; &amp;nbsp; 3.09&lt;/P&gt;&lt;P&gt;03/06 &amp;nbsp;&amp;nbsp; 12:35 &amp;nbsp; &amp;nbsp; &amp;nbsp; Mon &amp;nbsp; &amp;nbsp; 2.05&lt;/P&gt;&lt;P&gt;03/06 &amp;nbsp;&amp;nbsp; 12:40 &amp;nbsp; &amp;nbsp; &amp;nbsp; Mon &amp;nbsp; &amp;nbsp; 2.61&lt;/P&gt;&lt;P&gt;03/06 &amp;nbsp;&amp;nbsp; 12:45 &amp;nbsp; &amp;nbsp; &amp;nbsp; Mon &amp;nbsp; &amp;nbsp; 3.32&lt;/P&gt;&lt;P&gt;03/06 &amp;nbsp;&amp;nbsp; 12:50 &amp;nbsp; &amp;nbsp; &amp;nbsp; Mon &amp;nbsp; &amp;nbsp; 2.39&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;03/12 &amp;nbsp;&amp;nbsp; 12:20 &amp;nbsp; &amp;nbsp; &amp;nbsp; Sun &amp;nbsp; &amp;nbsp; 2.92&lt;/P&gt;&lt;P&gt;03/12 &amp;nbsp;&amp;nbsp; 12:30 &amp;nbsp; &amp;nbsp; &amp;nbsp; Sun &amp;nbsp; &amp;nbsp; 3.13&lt;/P&gt;&lt;P&gt;03/12 &amp;nbsp;&amp;nbsp; 12:35 &amp;nbsp; &amp;nbsp; &amp;nbsp; Sun &amp;nbsp; &amp;nbsp; 2.63&lt;/P&gt;&lt;P&gt;03/12 &amp;nbsp;&amp;nbsp; 12:40 &amp;nbsp; &amp;nbsp; &amp;nbsp; Sun &amp;nbsp; &amp;nbsp; 2.15&lt;/P&gt;&lt;P&gt;03/12 &amp;nbsp;&amp;nbsp; 12:45 &amp;nbsp; &amp;nbsp; &amp;nbsp; Sun &amp;nbsp; &amp;nbsp; 3.51&lt;/P&gt;&lt;P&gt;03/12 &amp;nbsp;&amp;nbsp; 12:50 &amp;nbsp; &amp;nbsp; &amp;nbsp; Sun &amp;nbsp; &amp;nbsp; 2.57&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to delete the first observation of each Sunday. What was wrong with my code? A lot more than expected rows got deleted. 52 Sundays in a year times 12 years = 624 observations are supposed to be deleted.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jan 2019 00:19:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/CONDITIONALLY-DELETING-FIRST-OBSERVATION/m-p/524767#M4823</guid>
      <dc:creator>d6k5d3</dc:creator>
      <dc:date>2019-01-05T00:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: CONDITIONALLY DELETING FIRST OBSERVATION</title>
      <link>https://communities.sas.com/t5/New-SAS-User/CONDITIONALLY-DELETING-FIRST-OBSERVATION/m-p/524770#M4825</link>
      <description>&lt;P&gt;Sounds like you want FIRST.DAY instead of FIRST.RETURN.&amp;nbsp; Since you have mulitple values or RETURN for each value of DAY the flag FIRST.RETURN could will be true multiple times on a Sunday. But FIRST.DAY will be true only for the first record for that day.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jan 2019 00:34:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/CONDITIONALLY-DELETING-FIRST-OBSERVATION/m-p/524770#M4825</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-01-05T00:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: CONDITIONALLY DELETING FIRST OBSERVATION</title>
      <link>https://communities.sas.com/t5/New-SAS-User/CONDITIONALLY-DELETING-FIRST-OBSERVATION/m-p/524775#M4827</link>
      <description>&lt;P&gt;Thanks a lot! Yes, that makes sense. What a stupid SAS beginner I am! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jan 2019 00:56:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/CONDITIONALLY-DELETING-FIRST-OBSERVATION/m-p/524775#M4827</guid>
      <dc:creator>d6k5d3</dc:creator>
      <dc:date>2019-01-05T00:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: CONDITIONALLY DELETING FIRST OBSERVATION</title>
      <link>https://communities.sas.com/t5/New-SAS-User/CONDITIONALLY-DELETING-FIRST-OBSERVATION/m-p/524799#M4834</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/239423"&gt;@d6k5d3&lt;/a&gt;, far from stupid asking questions in here &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; Welcome to the SAS communities.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jan 2019 11:53:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/CONDITIONALLY-DELETING-FIRST-OBSERVATION/m-p/524799#M4834</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-01-05T11:53:35Z</dc:date>
    </item>
  </channel>
</rss>

