<?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: PROC SQL or SAS Distinct Clause in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-or-SAS-Distinct-Clause/m-p/216477#M53294</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, thanks again. I shall extend this to 3 or 4 columns further. This is really helpful.&lt;/P&gt;&lt;P&gt;-Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Jul 2015 15:28:55 GMT</pubDate>
    <dc:creator>MikeCarter</dc:creator>
    <dc:date>2015-07-02T15:28:55Z</dc:date>
    <item>
      <title>PROC SQL or SAS Distinct Clause</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-or-SAS-Distinct-Clause/m-p/216462#M53279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way in SAS or Proc SQL, where we can not only select Distinct Rows, but also, the individual column values are not equal to each other? Below, an example-&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;City 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;City 2&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;A1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;A1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;A2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B1&lt;/P&gt;&lt;P&gt;A2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select "Distinct City 1, City 2"- would give me all the 4 rows. But not only the rows to be distinct, but also the values individually should be different from their column values. There may be multiple such combinations. Here, acceptable combinations would be rows 1&amp;amp;3 OR rows 2&amp;amp;4. So two such sets possible here. Is it possible to extract out such sets? Where, not only entire rows are distinct, but individual values are also distinct? SAS or SQL, whichever way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 19:16:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-or-SAS-Distinct-Clause/m-p/216462#M53279</guid>
      <dc:creator>MikeCarter</dc:creator>
      <dc:date>2015-06-29T19:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL or SAS Distinct Clause</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-or-SAS-Distinct-Clause/m-p/216463#M53280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What will be your wanted outcome and by what rules?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 19:21:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-or-SAS-Distinct-Clause/m-p/216463#M53280</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2015-06-29T19:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL or SAS Distinct Clause</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-or-SAS-Distinct-Clause/m-p/216464#M53281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, as I said- wanted outcome would be subset of rows, where individual column values are not equal to each other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;City 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; City 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;A1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B1&lt;/P&gt;&lt;P&gt;A2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;City 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; City 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;A1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B2&lt;/P&gt;&lt;P&gt;A2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both these outputs are acceptable, because values in individual columns (City 1, City2) are not repeated. To extract both of them would be great.&lt;/P&gt;&lt;P&gt;Proc SQL "Select Distinct City1, City2"- doesn't necessarily guarantee this, because although it may get us to distinct rows, the individual values will be different. But that's the subset I need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 19:35:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-or-SAS-Distinct-Clause/m-p/216464#M53281</guid>
      <dc:creator>MikeCarter</dc:creator>
      <dc:date>2015-06-29T19:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL or SAS Distinct Clause</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-or-SAS-Distinct-Clause/m-p/216465#M53282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are any of the values for City1 also in City2? How to handle if so.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 22:38:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-or-SAS-Distinct-Clause/m-p/216465#M53282</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-06-29T22:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL or SAS Distinct Clause</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-or-SAS-Distinct-Clause/m-p/216466#M53283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure exactly what you want.&amp;nbsp; Sounds like you want to find all possible values of CITY1 and all possible values of CITY2.&amp;nbsp; But I don't think that in general it would be possible to generate such a set only by selecting rows from the original file.&amp;nbsp; Why not just generate two separate tables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select distinct city1 from have;&lt;/P&gt;&lt;P&gt;select distinct city2 from have;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps you could generate an iterative process to delete the rows where both CITY1 and CITY2 are already included in the previous rows selected.&amp;nbsp; That would probably work best by using hash tables in a data step.&amp;nbsp; Not sure how you could find the minimum such set of rows.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 23:21:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-or-SAS-Distinct-Clause/m-p/216466#M53283</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-06-29T23:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL or SAS Distinct Clause</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-or-SAS-Distinct-Clause/m-p/216467#M53284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like an assignment (matching) problem to me. Not trivial. If you have SAS/OR licenced, you could use something like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data pairs;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;input City1 $ City2 $;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;datalines;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc optnet&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; graph_direction = directed&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; data_links&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = pairs;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; data_links_var&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = City1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; to&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = City2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; linear_assignment&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; out&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = uniquePairs(drop=cost);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc print data=uniquePairs; run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 03:04:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-or-SAS-Distinct-Clause/m-p/216467#M53284</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2015-06-30T03:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL or SAS Distinct Clause</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-or-SAS-Distinct-Clause/m-p/216468#M53285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting Question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #353535; font-family: Lato, sans-serif; font-size: 14px;"&gt;&lt;/P&gt;&lt;H3&gt;Code: Program&lt;/H3&gt;&lt;DIV class="sce-html-export" style="font-family: 'Courier New', Menlo, 'Lucida Console';"&gt;&lt;PRE class="sce-render" style="font-family: 'Courier New', Menlo, 'Lucida Console'; font-size: 16px;"&gt;&lt;SPAN class="sec-keyword" style="color: #000080; font-weight: bold;"&gt;data&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;pairs&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;input&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;City1&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;$&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;City2&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;$&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;datalines&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;A1 B1&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;A1 B2&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;A2 B1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;A2 B2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sec-keyword" style="color: #000080; font-weight: bold;"&gt;run&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sec-keyword" style="color: #000080; font-weight: bold;"&gt;data&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;want&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;_n_&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;eq&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="numeric" style="color: #008080; font-weight: bold;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;then&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;do&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;declare&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;hash&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;h1&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;h1.definekey&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string" style="color: #800080;"&gt;'city1'&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;h1.definedone&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;declare&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;hash&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;h2&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;h2.definekey&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string" style="color: #800080;"&gt;'city2'&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;h2.definedone&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;end&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;set&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;pairs&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;h1.check&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;ne&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="numeric" style="color: #008080; font-weight: bold;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;and&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;h2.check&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;ne&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="numeric" style="color: #008080; font-weight: bold;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;then&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;do&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt;h1.replace&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;h2.replace&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;output&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;end&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sec-keyword" style="color: #000080; font-weight: bold;"&gt;run&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;DIV&gt;&lt;SPAN class="sep" style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xia Keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 14:07:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-or-SAS-Distinct-Clause/m-p/216468#M53285</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-06-30T14:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL or SAS Distinct Clause</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-or-SAS-Distinct-Clause/m-p/216469#M53286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello PGStats- this is great. Yes, I think it worked. I have never used OPTNET, great application. I think, I'll do a bit more research on this procedure to use it more effectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A quick question- is there a way to apply Linear Assignment, if there were 3 or 4 columns? It's like solving, min wgt matching problem on tripartite or qudra-partite graphs? Not sure, if this is even practical. But evetually, I need to extend this technique to 4 columns-- where individual values in those 4 columns should be different. Does that make sense? Basically- the same output needed, with same condition, when applied over 3 or 4 columns. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 01:05:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-or-SAS-Distinct-Clause/m-p/216469#M53286</guid>
      <dc:creator>MikeCarter</dc:creator>
      <dc:date>2015-07-01T01:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL or SAS Distinct Clause</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-or-SAS-Distinct-Clause/m-p/216470#M53287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xia- this worked. Thank you for neat code, never used hash in SAS, will do a bit more reading on this technique. But thank you so much for your help. This worked for me.&lt;/P&gt;&lt;P&gt;Apprecite it,&lt;/P&gt;&lt;P&gt;-Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 01:07:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-or-SAS-Distinct-Clause/m-p/216470#M53287</guid>
      <dc:creator>MikeCarter</dc:creator>
      <dc:date>2015-07-01T01:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL or SAS Distinct Clause</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-or-SAS-Distinct-Clause/m-p/216471#M53288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you everyone for replying and reading the question. Xia and PGStats cracked it in two different ways, both are superb techniques. Thanks to all again,&lt;/P&gt;&lt;P&gt;-Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 01:09:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-or-SAS-Distinct-Clause/m-p/216471#M53288</guid>
      <dc:creator>MikeCarter</dc:creator>
      <dc:date>2015-07-01T01:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL or SAS Distinct Clause</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-or-SAS-Distinct-Clause/m-p/216472#M53289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Linear assignment is only defined between two sets. The clever hash method proposed by &lt;A __default_attr="645292" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt; can be extended to more sets, but even for two sets it will not always give optimal results. Try for example :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data pairs;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;input City1 $ City2 $;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;datalines;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A1 B1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A1 B2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A1 B3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A2 B1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc optnet&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; graph_direction = directed&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; data_links&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = pairs;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; data_links_var&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = City1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; to&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = City2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; linear_assignment&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; out&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = uniquePairs(drop=cost);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;title "Linear assignment pairs";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc print data=uniquePairs; run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data HashPairs;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; if _n_ eq 1 then do;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; declare hash h1();&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; h1.definekey('city1');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; h1.definedone();&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; declare hash h2();&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; h2.definekey('city2');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; h2.definedone();&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;end;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;set pairs;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if h1.check() ne 0 and h2.check() ne 0 then do;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;h1.replace();h2.replace();output;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;end;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;title "Hash pairs";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc print data=HashPairs; run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 02:20:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-or-SAS-Distinct-Clause/m-p/216472#M53289</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2015-07-01T02:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL or SAS Distinct Clause</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-or-SAS-Distinct-Clause/m-p/216473#M53290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;@ PGStats, Okay, I see what you mean now. Got it. This makes sense. Important to note, Hash method doesn't always guarantee optimal (max) number of rows, although it can be feasible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Thanks to you &amp;amp; &lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-objectid="645292" data-objecttype="3" href="https://communities.sas.com/people/Ksharp" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0e66ba;"&gt;xia keshan&lt;/A&gt; again for your both your ideas, will think on these directions further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;-Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 13:34:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-or-SAS-Distinct-Clause/m-p/216473#M53290</guid>
      <dc:creator>MikeCarter</dc:creator>
      <dc:date>2015-07-01T13:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL or SAS Distinct Clause</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-or-SAS-Distinct-Clause/m-p/216474#M53291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PG,&lt;/P&gt;&lt;P&gt;Hash Table also can get such max(optimal) sub-set .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3 style="color: #353535; font-family: Lato, sans-serif; background-color: #f0f1f2;"&gt;Code: Program&lt;/H3&gt;&lt;PRE class="sce-render" style="font-family: 'Courier New', Menlo, 'Lucida Console'; font-size: 16px;"&gt;&lt;SPAN class="sec-keyword" style="color: #000080; font-weight: bold;"&gt;data&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;have&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;input&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;a&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;$&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;b&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;$&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;cards&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;A1 B1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;A1 B2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;A1 B3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;A2 B1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sec-keyword" style="color: #000080; font-weight: bold;"&gt;run&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sec-keyword" style="color: #000080; font-weight: bold;"&gt;data&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;_null_&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="numeric" style="color: #008080; font-weight: bold;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;then&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;set&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;have&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;declare&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;hash&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;h1&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;h1.definekey&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string" style="color: #800080;"&gt;'a'&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;h1.definedone&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;declare&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;hash&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;h2&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;h2.definekey&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string" style="color: #800080;"&gt;'b'&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;h2.definedone&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;max&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="numeric" style="color: #008080; font-weight: bold;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;do&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;i&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="numeric" style="color: #008080; font-weight: bold;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;to&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;nobs&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;set&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;have&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;nobs&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;nobs&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;point&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;i&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;n&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="numeric" style="color: #008080; font-weight: bold;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;h1.check&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;ne&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="numeric" style="color: #008080; font-weight: bold;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;and&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;h2.check&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;ne&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="numeric" style="color: #008080; font-weight: bold;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;then&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;do&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;h1.add&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;h2.add&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;n&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;+&lt;/SPAN&gt;&lt;SPAN class="numeric" style="color: #008080; font-weight: bold;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;end&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;do&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;j&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="numeric" style="color: #008080; font-weight: bold;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;to&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;nobs&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;set&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;have&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;point&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;j&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;h1.check&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;ne&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="numeric" style="color: #008080; font-weight: bold;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;and&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;h2.check&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;ne&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="numeric" style="color: #008080; font-weight: bold;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;then&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;do&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;h1.add&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;h2.add&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;n&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;+&lt;/SPAN&gt;&lt;SPAN class="numeric" style="color: #008080; font-weight: bold;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;end&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;end&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;n&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;gt&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;max&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;then&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;do&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;max&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;n&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;call&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;symputx&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string" style="color: #800080;"&gt;'point'&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;i&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;end&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;h1.clear&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;h2.clear&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;end&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;stop&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sec-keyword" style="color: #000080; font-weight: bold;"&gt;run&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="sec-keyword" style="color: #000080; font-weight: bold;"&gt;data&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;want&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="numeric" style="color: #008080; font-weight: bold;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;then&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;set&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;have&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;declare&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;hash&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;h1&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;h1.definekey&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string" style="color: #800080;"&gt;'a'&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;h1.definedone&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;declare&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;hash&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;h2&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;h2.definekey&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string" style="color: #800080;"&gt;'b'&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;h2.definedone&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;point&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;point&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;set&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;have&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;point&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;point&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;h1.check&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;ne&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="numeric" style="color: #008080; font-weight: bold;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;and&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;h2.check&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;ne&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="numeric" style="color: #008080; font-weight: bold;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;then&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;do&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;h1.add&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;h2.add&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;output&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;end&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;do&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;j&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="numeric" style="color: #008080; font-weight: bold;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;to&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;nobs&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;set&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;have&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;nobs&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;nobs&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;point&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;j&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;h1.check&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;ne&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="numeric" style="color: #008080; font-weight: bold;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;and&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;h2.check&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;ne&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="numeric" style="color: #008080; font-weight: bold;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;then&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;do&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;h1.add&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;h2.add&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;output&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;end&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;end&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;stop&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sec-keyword" style="color: #000080; font-weight: bold;"&gt;run&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xia Keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 12:00:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-or-SAS-Distinct-Clause/m-p/216474#M53291</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-07-02T12:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL or SAS Distinct Clause</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-or-SAS-Distinct-Clause/m-p/216475#M53292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Xia. A little complicated to understand in first-go, but will study this further. Ability to extract Max subset, for upto 3 or 4 columns, is what's needed. Thanks again for your time,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 14:46:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-or-SAS-Distinct-Clause/m-p/216475#M53292</guid>
      <dc:creator>MikeCarter</dc:creator>
      <dc:date>2015-07-02T14:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL or SAS Distinct Clause</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-or-SAS-Distinct-Clause/m-p/216476#M53293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah. That is what you want - optimal(max) number of rows . Code could be shorter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3 style="font-family: Lato, sans-serif; color: #353535; background-color: #f0f1f2;"&gt;Code: Program&lt;/H3&gt;&lt;PRE class="sce-render" style="font-size: 16px; font-family: 'Courier New', Menlo, 'Lucida Console';"&gt;&lt;SPAN class="sec-keyword" style="font-weight: bold; font-style: inherit; font-family: inherit; color: #000080;"&gt;data&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;have&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;input&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;a&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;$&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;b&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;$&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;cards&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #bb9905;"&gt;A1 B1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #bb9905;"&gt;A1 B2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #bb9905;"&gt;A1 B3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #bb9905;"&gt;A2 B1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sec-keyword" style="font-weight: bold; font-style: inherit; font-family: inherit; color: #000080;"&gt;run&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sec-keyword" style="font-weight: bold; font-style: inherit; font-family: inherit; color: #000080;"&gt;data&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;_null_&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="numeric" style="font-weight: bold; font-style: inherit; font-family: inherit; color: #008080;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;then&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;set&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;have&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;declare&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;hash&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;h1&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;h1.definekey&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800080;"&gt;'a'&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;h1.definedone&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;declare&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;hash&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;h2&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;h2.definekey&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800080;"&gt;'b'&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;h2.definedone&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;max&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="numeric" style="font-weight: bold; font-style: inherit; font-family: inherit; color: #008080;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;do&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;i&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="numeric" style="font-weight: bold; font-style: inherit; font-family: inherit; color: #008080;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;to&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;nobs&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;set&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;have&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;nobs&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;nobs&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;point&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;i&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;n&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="numeric" style="font-weight: bold; font-style: inherit; font-family: inherit; color: #008080;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;h1.add&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;h2.add&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;n&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;+&lt;/SPAN&gt;&lt;SPAN class="numeric" style="font-weight: bold; font-style: inherit; font-family: inherit; color: #008080;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;do&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;j&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="numeric" style="font-weight: bold; font-style: inherit; font-family: inherit; color: #008080;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;to&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;nobs&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;set&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;have&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;point&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;j&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;h1.check&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;ne&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="numeric" style="font-weight: bold; font-style: inherit; font-family: inherit; color: #008080;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;and&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;h2.check&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;ne&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="numeric" style="font-weight: bold; font-style: inherit; font-family: inherit; color: #008080;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;then&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;do&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;h1.add&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;h2.add&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;n&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;+&lt;/SPAN&gt;&lt;SPAN class="numeric" style="font-weight: bold; font-style: inherit; font-family: inherit; color: #008080;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;end&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;end&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;n&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;gt&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;max&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;then&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;do&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;max&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;n&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;call&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;symputx&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800080;"&gt;'point'&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;i&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;end&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;h1.clear&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;h2.clear&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;end&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;stop&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sec-keyword" style="font-weight: bold; font-style: inherit; font-family: inherit; color: #000080;"&gt;run&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="sec-keyword" style="font-weight: bold; font-style: inherit; font-family: inherit; color: #000080;"&gt;data&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;want&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="numeric" style="font-weight: bold; font-style: inherit; font-family: inherit; color: #008080;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;then&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;set&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;have&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;declare&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;hash&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;h1&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;h1.definekey&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800080;"&gt;'a'&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;h1.definedone&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;declare&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;hash&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;h2&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;h2.definekey&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800080;"&gt;'b'&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;h2.definedone&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;point&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;point&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;set&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;have&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;point&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;point&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;h1.add&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;h2.add&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;output&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;do&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;j&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="numeric" style="font-weight: bold; font-style: inherit; font-family: inherit; color: #008080;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;to&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;nobs&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;set&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;have&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;nobs&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;nobs&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;point&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;j&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;h1.check&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;ne&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="numeric" style="font-weight: bold; font-style: inherit; font-family: inherit; color: #008080;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;and&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;h2.check&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;ne&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="numeric" style="font-weight: bold; font-style: inherit; font-family: inherit; color: #008080;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;then&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;do&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;h1.add&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;h2.add&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;output&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;end&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;end&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;stop&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sec-keyword" style="font-weight: bold; font-style: inherit; font-family: inherit; color: #000080;"&gt;run&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 14:58:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-or-SAS-Distinct-Clause/m-p/216476#M53293</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-07-02T14:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL or SAS Distinct Clause</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-or-SAS-Distinct-Clause/m-p/216477#M53294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, thanks again. I shall extend this to 3 or 4 columns further. This is really helpful.&lt;/P&gt;&lt;P&gt;-Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 15:28:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-or-SAS-Distinct-Clause/m-p/216477#M53294</guid>
      <dc:creator>MikeCarter</dc:creator>
      <dc:date>2015-07-02T15:28:55Z</dc:date>
    </item>
  </channel>
</rss>

