LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (May 2005, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 3 May 2005 18:00:28 -0700
Reply-To:     neilanessa@MSN.COM
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         neilanessa@MSN.COM
Organization: http://groups.google.com
Subject:      Re: Drug Combo Seq. Number
Comments: To: sas-l@uga.edu
In-Reply-To:  <9BUde.20585$0X6.15153@edtnps90>
Content-Type: text/plain; charset="iso-8859-1"

Gag, you call either what Bruce or I sent elegant???

A slightly obscure, but so $%^ng cool it is truly evil and probably even diabolical approach! Drum Roll.......;-)

COMPUTE # = # + ANY(1, drug1<>lag(drug1) , drug2<>lag(drug2) , drug3<>lag(drug3) ,drug4<>lag(drug4) ). compute combo=#.

Now that's elegant and simple....

Neila


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