LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (January 1998, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Sun, 11 Jan 1998 15:10:22 +0800
Reply-To:     Rami Zwick <mkzwick@UXMAIL.UST.HK>
Sender:       "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:         Rami Zwick <mkzwick@UXMAIL.UST.HK>
Organization: HKUST
Subject:      Finding the name of the variable with the minimum value among n
              variables
Content-Type: text/plain; charset=us-ascii

Friends:

Consider the following 10 variables and 1 observation:

> COL1 COL2 COL3 COL4 COL5 COL6 COL7 COL8 COL9 COL10 > > 3 9 6 8 5 4 2 10 7 1 > I would like to create 9 new (numeric) variables, say m2-m10, that will indicate the column that contains the minimum value among all previous columns (inclusive). For example, for the above observation m2-m10 should be:

> m2 m3 m4 m5 m6 m7 m8 m9 m10 > > 1 1 1 1 1 7 7 7 10 >

Any help will be appreciated.

Thanks, Rami.


Back to: Top of message | Previous page | Main SAS-L page