<?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: Get minimum value of variable data in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Get-minimum-value-of-variable-data/m-p/679947#M205390</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/55374"&gt;@pdhokriya&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Ok Thank you.&lt;BR /&gt;&lt;BR /&gt;What about proc sql syntax?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You also use the MIN function in the SELECT.&lt;/P&gt;</description>
    <pubDate>Fri, 28 Aug 2020 05:18:51 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-08-28T05:18:51Z</dc:date>
    <item>
      <title>Get minimum value of variable data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-minimum-value-of-variable-data/m-p/679713#M205270</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Final data should be with money4 column with minimum value in data step or pro sql programming or macro&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;data b ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;input USUBJID MONEY1 MONEY2 MONEY3 ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;cards ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;10001 120 110 300&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;20001 120 10 300&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;30002 120 900 90&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want output in new column Money4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;where i will get min value of (money1 money2 money3)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i.e&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Money4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;110&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;10&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;90&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2020 13:18:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-minimum-value-of-variable-data/m-p/679713#M205270</guid>
      <dc:creator>pdhokriya</dc:creator>
      <dc:date>2020-08-27T13:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: Get minimum value of variable data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-minimum-value-of-variable-data/m-p/679715#M205272</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data b ;
input USUBJID MONEY1 MONEY2 MONEY3 ;
cards ;

10001 120 110 300
20001 120 10 300
30002 120 900 90
;
run;

data want;
 set b;
 money4=min(of money1-money3);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Aug 2020 13:22:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-minimum-value-of-variable-data/m-p/679715#M205272</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-08-27T13:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Get minimum value of variable data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-minimum-value-of-variable-data/m-p/679716#M205273</link>
      <description>&lt;DIV&gt;&lt;FONT style="background-color: #ffffff;"&gt;data b ;&lt;BR /&gt;input USUBJID MONEY1 MONEY2 MONEY3 ;&lt;BR /&gt;cards ;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT style="background-color: #ffffff;"&gt;10001 120 110 300&lt;BR /&gt;20001 120 10 300&lt;BR /&gt;30002 120 900 90&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT style="background-color: #ffffff;"&gt;data a;&lt;BR /&gt;&amp;nbsp; set b;&lt;BR /&gt;&amp;nbsp; MONEY3=min(MONEY1, MONEY2, MONEY3);&lt;BR /&gt;run;&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 27 Aug 2020 13:26:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-minimum-value-of-variable-data/m-p/679716#M205273</guid>
      <dc:creator>chaoli</dc:creator>
      <dc:date>2020-08-27T13:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Get minimum value of variable data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-minimum-value-of-variable-data/m-p/679932#M205378</link>
      <description>Ok Thank you.&lt;BR /&gt;&lt;BR /&gt;What about proc sql syntax?</description>
      <pubDate>Fri, 28 Aug 2020 03:35:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-minimum-value-of-variable-data/m-p/679932#M205378</guid>
      <dc:creator>pdhokriya</dc:creator>
      <dc:date>2020-08-28T03:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Get minimum value of variable data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-minimum-value-of-variable-data/m-p/679947#M205390</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/55374"&gt;@pdhokriya&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Ok Thank you.&lt;BR /&gt;&lt;BR /&gt;What about proc sql syntax?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You also use the MIN function in the SELECT.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 05:18:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-minimum-value-of-variable-data/m-p/679947#M205390</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-08-28T05:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Get minimum value of variable data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-minimum-value-of-variable-data/m-p/680224#M205532</link>
      <description>Thank you , I will try this.</description>
      <pubDate>Sat, 29 Aug 2020 17:01:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-minimum-value-of-variable-data/m-p/680224#M205532</guid>
      <dc:creator>pdhokriya</dc:creator>
      <dc:date>2020-08-29T17:01:36Z</dc:date>
    </item>
  </channel>
</rss>

