Chapter Contents

Previous

Next
SUM

SUM


Returns the sum of the nonmissing arguments

Category: Sample Statistics


Syntax
Arguments
Examples

Syntax

SUM(argument,argument, ...)

Arguments

argument
is numeric. At least two arguments are required. The argument list may consist of a variable list, which is preceded by OF.


Examples

SAS Statements Results

x1=sum(4,9,3,8);
24

x2=sum(4,9,3,8,.);
24

x3=sum(of x1-x2);
48

x4=sum(of x1-x3, 5, of x5-x10);
64


Chapter Contents

Previous

Next

Top of Page

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.