User:LainieH/test page

From sasCommunity
Jump to: navigation, search

sasCommunity Tip of the Day

The ABS Function can be used to return a Positive value..

DATA POSITIVE_INTEGER;
VALUE = abs(-789);
RUN;
PROC PRINT;
RUN;

And now in version 9.2, the SUMABS function is available, and will compute the sum of the absolute value of the non-missing arguments:

DATA POSITIVE_INTEGER;
VALUE = sumabs(-1, 3, 0, ., -10);
RUN;
PROC PRINT;
RUN;

will return a value of 14


Submitted by S.M.Ayetullah. Contact me at my Discussion Page.



Feel free to comment on this tip.




Check out the Tip of the Day page for details about this effort.



View the web-site usage statistics and the definition of terms used in that report.