<?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: analyst following in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/analyst-following/m-p/127571#M34878</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looking at the data, you're right in thinking that you just need to output the last observation per gvkey and enddate group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10.0pt; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt; want;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt; analyst.main;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt; gvkey enddate;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt; last.enddate;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10.0pt; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 May 2012 08:33:02 GMT</pubDate>
    <dc:creator>Keith</dc:creator>
    <dc:date>2012-05-28T08:33:02Z</dc:date>
    <item>
      <title>analyst following</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/analyst-following/m-p/127570#M34877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have file analyst.main that list&amp;nbsp; down the recommendations given by financial analyst during each year, thus there would be several recommendation (var=numrec) thru out the whole year given by date variable statpers. However I only need to select the recommendation that is given towards the end of the financial year. The enddate of the financial year is given by variable enddate, or we should select the final observation for each financial year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example for gvkey 001004 (first company), the fyear is 2000, thus the observation to be selected should be the 5th observation, as that is the last one in fy2000. The numrec=6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how do i output one dataset with each company with just one observation for each fyear?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, with data attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2012 07:16:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/analyst-following/m-p/127570#M34877</guid>
      <dc:creator>mei</dc:creator>
      <dc:date>2012-05-28T07:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: analyst following</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/analyst-following/m-p/127571#M34878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looking at the data, you're right in thinking that you just need to output the last observation per gvkey and enddate group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10.0pt; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt; want;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt; analyst.main;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt; gvkey enddate;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt; last.enddate;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10.0pt; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2012 08:33:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/analyst-following/m-p/127571#M34878</guid>
      <dc:creator>Keith</dc:creator>
      <dc:date>2012-05-28T08:33:02Z</dc:date>
    </item>
  </channel>
</rss>

