COBOL Manual for TNS/E Programs (H06.08+, J06.03+)
Example 198 LOWER-CASE Function
Code:
DISPLAY FUNCTION LOWER-CASE ("HEWLETT-PACKARD COMPANY 2003")
DISPLAY FUNCTION LOWER-CASE ("Hewlett-packard Company 2003")
DISPLAY FUNCTION LOWER-CASE ("hewlett-packard company 2003")
Output:
hewlett-packard company 2003
hewlett-packard company 2003
hewlett-packard company 2003
MAX Function
MAX is a function that returns the value of its maximum argument. Its type depends on the type of
its arguments, as this table shows:
Function TypeArgument Type
AlphanumericAlphabetic
AlphanumericAlphanumeric
IntegerInteger
NumericNumeric (some can be integer)
argument
is an alphabetic, alphanumeric, integer, or numeric argument. If you specify more than one
argument, they must all be of the same class. Integer and numeric arguments can be mixed,
because integers are of the class numeric.
argument can be an array; for example,
FUNCTION MAX (ARRAY1(ALL))
returns the largest element of the array ARRAY1.
The returned value is the argument with the greatest value (according to the rules for evaluating
simple conditions). If the function type is alphanumeric, the size of the returned value is the same
as that of the argument with the greatest value. If two arguments have the same greatest value,
the value of the leftmost argument is returned.
MAX Function 673










