Date: Thu, 6 Sep 2007 15:38:29 -0400
Reply-To: Arthur Tabachneck <art297@NETSCAPE.NET>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Arthur Tabachneck <art297@NETSCAPE.NET>
Subject: Re: sas absolute value function
Vincent,
Where are you trying to use it? As you can test, from the following, it
can be used at least in some places outside of a datastep:
data test;
input x;
cards;
1
-3
-5
2
-4
;
proc print data=test (where=(abs(x) gt 2));
run;
Art
----------
On Thu, 6 Sep 2007 12:12:07 -0700, duo wan <duo_wan@YAHOO.COM> wrote:
>Hi All,
>
> Is there any sas function for absolute value which can be used outside
data step? abs() can only be used data step.
>
> thanks,
>
> Vincent
>
>
>---------------------------------
>Luggage? GPS? Comic books?
>Check out fitting gifts for grads at Yahoo! Search.
|