Chapter Contents

Previous

Next
SUM

SUM



Returns the sum of the nonmissing arguments

Category: Descriptive Statistics


Syntax
Arguments
Examples

Syntax

SUM(argument,argument, ...)

Arguments

argument
is numeric. The argument list can 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);
101
y1=20;
y2=30;
x5=sum(of y:);
50


Chapter Contents

Previous

Next

Top of Page

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