Date: Mon, 27 Apr 2009 16:15:09 -0400
Reply-To: Sclavid Raj <sskonda@AOL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Sclavid Raj <sskonda@AOL.COM>
Subject: To get lowest value among each observation
Hello all,
I have four variables and 2000 obs. I need to get the lowest value in each
observation (row) among four variables in a separate variables for lowest
value, as well as that variable name.
Here is the example:
var1 var2 var3 var4
20 30 15 40
17 50 25 30
. .
. .
. .
Output should be like this;
var1 var2 var3 var4 low low_var
20 30 15 40 15 var3
17 50 25 30 17 var1
. .
. .
. .
I think i am clear.
Thanks in advacne.
Sclavid.
|