COBOL Manual for TNS and TNS/R Programs
Intrinsic Functions
HP COBOL Manual for TNS and TNS/R Programs—522555-006
14-6
Variable-Type Intrinsic Functions
Variable-Type Intrinsic Functions
The type of some intrinsic functions depends on the type(s) of its arguments.
Argument Types
Table 14-6 lists the types of arguments that intrinsic functions can have, tells you what
you must specify for an argument of each type, and tells you what is used in
determining the function’s value.
Table 14-4. Variable-Type Intrinsic Functions
Function Name Value Returned
MAX Function
Value of maximum argument
MIN Function
Value of minimum argument
RANGE Function
Value of maximum argument minus value of minimum
argument
SUM Function
Sum of arguments
Table 14-5. How Argument Type Determines Variable-Type Intrinsic Function
Type
Argument Type Function Type
Alphabetic Alphanumeric
Alphanumeric Alphanumeric
Integer Integer
Numeric (some can be integer) Numeric
Note. Not every function in Ta bl e 1 4- 4
can have arguments of every type in Table 14-5. For
valid argument types for a particular function, see the description of that function later in this
section.
Note. Not every intrinsic function can have arguments of every type in Ta bl e 1 4- 6
. For valid
argument types for a particular function, see the description of that function later in this section.