Date: Thu, 6 Sep 2007 12:57:15 -0700
Reply-To: duo wan <duo_wan@YAHOO.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: duo wan <duo_wan@YAHOO.COM>
Subject: Re: sas absolute value function
In-Reply-To: <200709061938.l86Ibpal008493@mailgw.cc.uga.edu>
Content-Type: text/plain; charset=iso-8859-1
thanks Art! It is strange though. I tried to use it in a macro contained in proc genmod programming step. Somehow sas said ABS function can not be called.
Vincent.
Arthur Tabachneck <art297@NETSCAPE.NET> wrote:
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 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.
---------------------------------
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more.