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 (September 2007, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 6 Sep 2007 12:15:36 -0700
Reply-To:   "Terjeson, Mark" <Mterjeson@RUSSELL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Terjeson, Mark" <Mterjeson@RUSSELL.COM>
Subject:   Re: sas absolute value function
Comments:   To: duo wan <duo_wan@YAHOO.COM>
In-Reply-To:   A<711321.22182.qm@web30301.mail.mud.yahoo.com>
Content-Type:   text/plain; charset="us-ascii"

Hi Vincent,

If a macro variable is an acceptable environmental place to hold the value then you will like knowing that the %SYSFUNC() function allows resolution of most of the datastep functions into the macro world outside of the datastep.

e.g.

%let myVar=%sysfunc(abs(-3)); %put myVar is >&myVar<;

Hope this is helpful.

Mark Terjeson Senior Programmer Analyst, IM&R Russell Investments

Russell Investments Global Leaders in Multi-Manager Investing

-----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of duo wan Sent: Thursday, September 06, 2007 12:12 PM To: SAS-L@LISTSERV.UGA.EDU Subject: sas absolute value function

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.


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