<?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 get a first occurrence in a query in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-a-first-occurrence-in-a-query/m-p/3044#M963</link>
    <description>Thank you, Victor,&lt;BR /&gt;
&lt;BR /&gt;
I will use your most welcome suggestions.</description>
    <pubDate>Wed, 16 May 2007 15:45:17 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2007-05-16T15:45:17Z</dc:date>
    <item>
      <title>How to get a first occurrence in a query</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-a-first-occurrence-in-a-query/m-p/3042#M961</link>
      <description>In a sotred process being coded in EG, is there a way, in a query, to obtain the first occurrence of a data field?  Something like the following pseudocode....&lt;BR /&gt;
&lt;BR /&gt;
Create table suchandsuch;&lt;BR /&gt;
first requestedfield&lt;BR /&gt;
fieldb&lt;BR /&gt;
fieldc&lt;BR /&gt;
first fieldd&lt;BR /&gt;
quit;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
In short, say I have 10 occurrences of a record (no, not duplicates) for Joe Schmoe, but I only want to gather info for the first occurrence.  I know how to do this in MS Access queries, but haven't seen anything about it for stored processes.&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance!!</description>
      <pubDate>Mon, 14 May 2007 18:50:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-a-first-occurrence-in-a-query/m-p/3042#M961</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-05-14T18:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a first occurrence in a query</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-a-first-occurrence-in-a-query/m-p/3043#M962</link>
      <description>Hello&lt;BR /&gt;
&lt;BR /&gt;
I will try to answer as match as i understand the question:&lt;BR /&gt;
&lt;BR /&gt;
You have a task in the data menu called "Sort the data". You wil sort the data by the name for example and the "Options" folder, in the "double record" you will indicate "Keep only the first record for each group"&lt;BR /&gt;
&lt;BR /&gt;
You can also use, if you want to, the PROC SQL with GROUP BY option.&lt;BR /&gt;
&lt;BR /&gt;
NB: I translate phrases from french because i have the french version of Guide. So may be the indications will not be exactly the same.&lt;BR /&gt;
&lt;BR /&gt;
Regards</description>
      <pubDate>Tue, 15 May 2007 13:46:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-a-first-occurrence-in-a-query/m-p/3043#M962</guid>
      <dc:creator>Victor</dc:creator>
      <dc:date>2007-05-15T13:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a first occurrence in a query</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-a-first-occurrence-in-a-query/m-p/3044#M963</link>
      <description>Thank you, Victor,&lt;BR /&gt;
&lt;BR /&gt;
I will use your most welcome suggestions.</description>
      <pubDate>Wed, 16 May 2007 15:45:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-a-first-occurrence-in-a-query/m-p/3044#M963</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-05-16T15:45:17Z</dc:date>
    </item>
  </channel>
</rss>

