Date: Wed, 21 Apr 2004 11:49:31 -0400
Reply-To: "Richard A. DeVenezia" <radevenz@IX.NETCOM.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Richard A. DeVenezia" <radevenz@IX.NETCOM.COM>
Subject: Re: Unusual sorting problem
Kenneth Moody wrote:
> Richard,
>
> Will deriving the value x_temp in a prior data step or view as:
>
> retain _direction -1; drop _direction;
>
> if first.y then _direction = -1*_direction;
> x_temp = x*_direction;
>
> followed by:
>
> proc sort data= <...>;
> by y x_temp;
>
> do what you need?
>
> Ken
>
Exactly what I needed. Thanks everybody.
--
Richard
|