To use a SAS function,
specify the function name followed by the function arguments, which
are enclosed in parentheses.
Syntax, SAS function:
function-name(argument-1<,argument-n>);
Each of the following are arguments.
-
-
constants, mean(456,502,612,498)
-
expressions, mean(37*2,192/5,mean(22,34,56))
|
Note: Even if the function does
not require arguments, the function name must still be followed by
parentheses (for example, function-name()).
When a function contains
more than one argument, the arguments are usually separated by commas.
function-name(argument-1,argument-2,argument-n)
In some functions, variable lists and arrays can also
be used as arguments, as long as the list or the array is preceded
by the word
of.
For more information
about arrays, see Processing Data with Arrays.