COBOL Manual for TNS/E Programs (H06.08+, J06.03+)
Example 222 UPPER-CASE Function
Code:
DISPLAY FUNCTION UPPER-CASE ("HEWLETT-PACKARD COMPANY 2003")
DISPLAY FUNCTION UPPER-CASE ("Hewlett-packard Company 2003")
DISPLAY FUNCTION UPPER-CASE ("hewlett-packard company 2003")
Output:
HEWLETT-PACKARD COMPANY 2003
HEWLETT-PACKARD COMPANY 2003
HEWLETT-PACKARD COMPANY 2003
VARIANCE Function
VARIANCE, a numeric function, returns a value that approximates the variance of its arguments.
argument
is a numeric argument.
argument can be an array; for example,
FUNCTION VARIANCE (ARRAY1(ALL))
returns a value that approximates the variance of the elements of the array ARRAY1.
The returned value is the approximation of the variance of the argument series.
If there is only one argument, or if every argument is a variable occurrence data item and the
total number of occurrences for all of them is one, the returned value is zero; otherwise, the returned
value is the square of the standard deviation of the argument series; that is:
696 Intrinsic Functions










