<?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: Take the higher value to define a new variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Take-the-higher-value-to-define-a-new-variable/m-p/648437#M194235</link>
    <description>&lt;P&gt;Did you try&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;PARMAXEDUCA = max(FEDUCA,MEDUCA);&lt;/PRE&gt;</description>
    <pubDate>Sun, 17 May 2020 20:45:22 GMT</pubDate>
    <dc:creator>RichardDeVen</dc:creator>
    <dc:date>2020-05-17T20:45:22Z</dc:date>
    <item>
      <title>Take the higher value to define a new variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Take-the-higher-value-to-define-a-new-variable/m-p/648329#M194176</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have two variables in my dataset, one for father's education (FEDUCA), and one for mother's education (MEDUCA). I would like to create a new variable for parent's education, that is defined by whichever parent's education level is higher. I tried writing this into a DATA statement, but it doesn't look like it's working - when I run a PROC FREQ it shows 217 missing. I should have data on either Mother's or Father's education for all of them, so I'm not sure why it isn't working. Any advice? Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 16 May 2020 18:55:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Take-the-higher-value-to-define-a-new-variable/m-p/648329#M194176</guid>
      <dc:creator>amng</dc:creator>
      <dc:date>2020-05-16T18:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Take the higher value to define a new variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Take-the-higher-value-to-define-a-new-variable/m-p/648330#M194177</link>
      <description>&lt;P&gt;When your code does not give you the expected result, or gives ERRORs, WARNINGs or NOTEs you do not understand, it is essential to let us see the code and the log from it. Use the &amp;lt;/&amp;gt; button for logs, and the "little running man" to post the text by copy/pasting from your SAS interface.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To get the maximum of several (numeric) values, use the&amp;nbsp;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=n00bjr4jof59pwn1bfzk9f5i0ujr.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;MAX&lt;/A&gt;&amp;nbsp;function.&lt;/P&gt;</description>
      <pubDate>Sat, 16 May 2020 19:01:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Take-the-higher-value-to-define-a-new-variable/m-p/648330#M194177</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-05-16T19:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Take the higher value to define a new variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Take-the-higher-value-to-define-a-new-variable/m-p/648377#M194200</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/298725"&gt;@amng&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please post some sample data, the code you used as well as the log?&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;</description>
      <pubDate>Sun, 17 May 2020 09:51:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Take-the-higher-value-to-define-a-new-variable/m-p/648377#M194200</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-05-17T09:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Take the higher value to define a new variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Take-the-higher-value-to-define-a-new-variable/m-p/648437#M194235</link>
      <description>&lt;P&gt;Did you try&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;PARMAXEDUCA = max(FEDUCA,MEDUCA);&lt;/PRE&gt;</description>
      <pubDate>Sun, 17 May 2020 20:45:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Take-the-higher-value-to-define-a-new-variable/m-p/648437#M194235</guid>
      <dc:creator>RichardDeVen</dc:creator>
      <dc:date>2020-05-17T20:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Take the higher value to define a new variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Take-the-higher-value-to-define-a-new-variable/m-p/648443#M194241</link>
      <description>&lt;P&gt;thanks! this was the code I was looking for.&lt;/P&gt;</description>
      <pubDate>Sun, 17 May 2020 21:15:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Take-the-higher-value-to-define-a-new-variable/m-p/648443#M194241</guid>
      <dc:creator>amng</dc:creator>
      <dc:date>2020-05-17T21:15:16Z</dc:date>
    </item>
  </channel>
</rss>

