<?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 keep the last observation of the day by firm id? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-keep-the-last-observation-of-the-day-by-firm-id/m-p/650705#M195151</link>
    <description>Thanks.</description>
    <pubDate>Tue, 26 May 2020 12:44:11 GMT</pubDate>
    <dc:creator>bd_user_10</dc:creator>
    <dc:date>2020-05-26T12:44:11Z</dc:date>
    <item>
      <title>How to keep the last observation of the day by firm id?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-keep-the-last-observation-of-the-day-by-firm-id/m-p/650669#M195134</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to keep the last observation of the day per ISIN. Can someone please help? I have attached the sample SAS dataset here. Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 11:07:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-keep-the-last-observation-of-the-day-by-firm-id/m-p/650669#M195134</guid>
      <dc:creator>bd_user_10</dc:creator>
      <dc:date>2020-05-26T11:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep the last observation of the day by firm id?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-keep-the-last-observation-of-the-day-by-firm-id/m-p/650673#M195137</link>
      <description>&lt;P&gt;If you sort by ISIN and day, then in a DATA step you can so something like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
    set have;
    by isin;
    if last.isin;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 May 2020 11:11:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-keep-the-last-observation-of-the-day-by-firm-id/m-p/650673#M195137</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-05-26T11:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep the last observation of the day by firm id?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-keep-the-last-observation-of-the-day-by-firm-id/m-p/650687#M195143</link>
      <description>Hi PaigeMiller,&lt;BR /&gt;I have tried this before, it gives me the last observation-only per ISIN. It does not give me the last observation per day.&lt;BR /&gt;</description>
      <pubDate>Tue, 26 May 2020 11:33:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-keep-the-last-observation-of-the-day-by-firm-id/m-p/650687#M195143</guid>
      <dc:creator>bd_user_10</dc:creator>
      <dc:date>2020-05-26T11:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep the last observation of the day by firm id?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-keep-the-last-observation-of-the-day-by-firm-id/m-p/650698#M195150</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=have;
by isin date time;
run;

data want;
set have;
by isin date;
if last.date;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 May 2020 12:24:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-keep-the-last-observation-of-the-day-by-firm-id/m-p/650698#M195150</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-05-26T12:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep the last observation of the day by firm id?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-keep-the-last-observation-of-the-day-by-firm-id/m-p/650705#M195151</link>
      <description>Thanks.</description>
      <pubDate>Tue, 26 May 2020 12:44:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-keep-the-last-observation-of-the-day-by-firm-id/m-p/650705#M195151</guid>
      <dc:creator>bd_user_10</dc:creator>
      <dc:date>2020-05-26T12:44:11Z</dc:date>
    </item>
  </channel>
</rss>

