<?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 Create a code in SAS with correspondences by line (like a vlookup) in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Create-a-code-in-SAS-with-correspondences-by-line-like-a-vlookup/m-p/637045#M21417</link>
    <description>&lt;P&gt;&lt;FONT face="Verdana,Arial,Helvetica,sans-serif"&gt;I would like to create a code that fill in a variable with the value which is the id corresponding to a minimum age. &lt;/FONT&gt;&lt;FONT&gt;In case you have more than one ID with the same minimum age, Iwould like to bring the smallest ID (containing the smallest age) for the variable ID_AGE_MIN, e.g:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID AGE ID_MIN_AGE&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;13&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
    <pubDate>Thu, 02 Apr 2020 22:33:01 GMT</pubDate>
    <dc:creator>usuario_estudo</dc:creator>
    <dc:date>2020-04-02T22:33:01Z</dc:date>
    <item>
      <title>Create a code in SAS with correspondences by line (like a vlookup)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-a-code-in-SAS-with-correspondences-by-line-like-a-vlookup/m-p/637045#M21417</link>
      <description>&lt;P&gt;&lt;FONT face="Verdana,Arial,Helvetica,sans-serif"&gt;I would like to create a code that fill in a variable with the value which is the id corresponding to a minimum age. &lt;/FONT&gt;&lt;FONT&gt;In case you have more than one ID with the same minimum age, Iwould like to bring the smallest ID (containing the smallest age) for the variable ID_AGE_MIN, e.g:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID AGE ID_MIN_AGE&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;13&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 02 Apr 2020 22:33:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-a-code-in-SAS-with-correspondences-by-line-like-a-vlookup/m-p/637045#M21417</guid>
      <dc:creator>usuario_estudo</dc:creator>
      <dc:date>2020-04-02T22:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Create a code in SAS with correspondences by line (like a vlookup)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-a-code-in-SAS-with-correspondences-by-line-like-a-vlookup/m-p/637046#M21418</link>
      <description>&lt;P&gt;Perhaps&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input ID AGE;
datalines;
1	13
2	25
3	7 
;

proc sql;
   create table want as
   select *, (select id from have having min(age)=age) as id_min_age
   from have;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Apr 2020 20:01:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-a-code-in-SAS-with-correspondences-by-line-like-a-vlookup/m-p/637046#M21418</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2020-04-02T20:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Create a code in SAS with correspondences by line (like a vlookup)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-a-code-in-SAS-with-correspondences-by-line-like-a-vlookup/m-p/637066#M21420</link>
      <description>It's perfect.&lt;BR /&gt;I just had one problem:&lt;BR /&gt;In case you have more than one ID with the same minimum age. In this case, I would like to bring the smallest ID (containing the smallest age) for the variable ID_AGE_MIN.</description>
      <pubDate>Thu, 02 Apr 2020 20:45:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-a-code-in-SAS-with-correspondences-by-line-like-a-vlookup/m-p/637066#M21420</guid>
      <dc:creator>usuario_estudo</dc:creator>
      <dc:date>2020-04-02T20:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Create a code in SAS with correspondences by line (like a vlookup)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-a-code-in-SAS-with-correspondences-by-line-like-a-vlookup/m-p/637097#M21424</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31304"&gt;@PeterClemmensen&lt;/a&gt;</description>
      <pubDate>Thu, 02 Apr 2020 22:20:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-a-code-in-SAS-with-correspondences-by-line-like-a-vlookup/m-p/637097#M21424</guid>
      <dc:creator>usuario_estudo</dc:creator>
      <dc:date>2020-04-02T22:20:26Z</dc:date>
    </item>
  </channel>
</rss>

