Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Language Reference Manual

SUM

SUM returns the sum of all the elements in x. The base, mode, and scale of the result match those of x.

Read syntax diagramSkip visual syntax diagram>>-SUM(x)------------------------------------------------------><
 
x
Array expression. If the elements of x are strings, they are converted to fixed-point integer values.

If the elements of x are fixed-point, the precision of the result is (N,q), where N is the maximum number of digits allowed, and q is the scaling factor of x.

If the elements of x are floating-point, the precision of the result matches x.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)